# QueryInst

Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11330) END FROM WidgetInst WHERE WidgetInstId = 11330) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11365;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11331) END FROM WidgetInst WHERE WidgetInstId = 11331) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11366;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 10597) END FROM WidgetInst WHERE WidgetInstId = 10597) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11374;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 10598) END FROM WidgetInst WHERE WidgetInstId = 10598) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11375;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 10599) END FROM WidgetInst WHERE WidgetInstId = 10599) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11376;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 10600) END FROM WidgetInst WHERE WidgetInstId = 10600) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11377;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 10601) END FROM WidgetInst WHERE WidgetInstId = 10601) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11378;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 10602) END FROM WidgetInst WHERE WidgetInstId = 10602) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11379;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 10603) END FROM WidgetInst WHERE WidgetInstId = 10603) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11380;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11437) END FROM WidgetInst WHERE WidgetInstId = 11437) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11444;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11438) END FROM WidgetInst WHERE WidgetInstId = 11438) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11445;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11439) END FROM WidgetInst WHERE WidgetInstId = 11439) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11446;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11440) END FROM WidgetInst WHERE WidgetInstId = 11440) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11447;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11441) END FROM WidgetInst WHERE WidgetInstId = 11441) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11448;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11442) END FROM WidgetInst WHERE WidgetInstId = 11442) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11449;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11443) END FROM WidgetInst WHERE WidgetInstId = 11443) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11450;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11437) END FROM WidgetInst WHERE WidgetInstId = 11437) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11458;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11438) END FROM WidgetInst WHERE WidgetInstId = 11438) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11459;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11439) END FROM WidgetInst WHERE WidgetInstId = 11439) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11460;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11440) END FROM WidgetInst WHERE WidgetInstId = 11440) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11461;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11441) END FROM WidgetInst WHERE WidgetInstId = 11441) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11462;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11442) END FROM WidgetInst WHERE WidgetInstId = 11442) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11463;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11443) END FROM WidgetInst WHERE WidgetInstId = 11443) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11464;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11437) END FROM WidgetInst WHERE WidgetInstId = 11437) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11472;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11438) END FROM WidgetInst WHERE WidgetInstId = 11438) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11473;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11439) END FROM WidgetInst WHERE WidgetInstId = 11439) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11474;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11440) END FROM WidgetInst WHERE WidgetInstId = 11440) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11475;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11441) END FROM WidgetInst WHERE WidgetInstId = 11441) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11476;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11442) END FROM WidgetInst WHERE WidgetInstId = 11442) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11477;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11443) END FROM WidgetInst WHERE WidgetInstId = 11443) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11478;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 10597) END FROM WidgetInst WHERE WidgetInstId = 10597) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11486;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 10598) END FROM WidgetInst WHERE WidgetInstId = 10598) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11487;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 10599) END FROM WidgetInst WHERE WidgetInstId = 10599) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11488;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 10600) END FROM WidgetInst WHERE WidgetInstId = 10600) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11489;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 10601) END FROM WidgetInst WHERE WidgetInstId = 10601) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11490;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 10602) END FROM WidgetInst WHERE WidgetInstId = 10602) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11491;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 10603) END FROM WidgetInst WHERE WidgetInstId = 10603) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11492;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11577) END FROM WidgetInst WHERE WidgetInstId = 11577) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11584;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11578) END FROM WidgetInst WHERE WidgetInstId = 11578) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11585;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11579) END FROM WidgetInst WHERE WidgetInstId = 11579) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11586;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11580) END FROM WidgetInst WHERE WidgetInstId = 11580) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11587;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11581) END FROM WidgetInst WHERE WidgetInstId = 11581) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11588;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11582) END FROM WidgetInst WHERE WidgetInstId = 11582) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11589;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11583) END FROM WidgetInst WHERE WidgetInstId = 11583) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11590;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11577) END FROM WidgetInst WHERE WidgetInstId = 11577) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11598;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11578) END FROM WidgetInst WHERE WidgetInstId = 11578) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11599;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11579) END FROM WidgetInst WHERE WidgetInstId = 11579) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11600;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11580) END FROM WidgetInst WHERE WidgetInstId = 11580) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11601;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11581) END FROM WidgetInst WHERE WidgetInstId = 11581) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11602;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11582) END FROM WidgetInst WHERE WidgetInstId = 11582) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11603;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11583) END FROM WidgetInst WHERE WidgetInstId = 11583) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11604;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11577) END FROM WidgetInst WHERE WidgetInstId = 11577) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11612;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11578) END FROM WidgetInst WHERE WidgetInstId = 11578) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11613;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11579) END FROM WidgetInst WHERE WidgetInstId = 11579) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11614;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11580) END FROM WidgetInst WHERE WidgetInstId = 11580) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11615;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11581) END FROM WidgetInst WHERE WidgetInstId = 11581) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11616;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11582) END FROM WidgetInst WHERE WidgetInstId = 11582) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11617;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11583) END FROM WidgetInst WHERE WidgetInstId = 11583) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11618;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 10597) END FROM WidgetInst WHERE WidgetInstId = 10597) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11626;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 10598) END FROM WidgetInst WHERE WidgetInstId = 10598) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11627;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 10599) END FROM WidgetInst WHERE WidgetInstId = 10599) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11628;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 10600) END FROM WidgetInst WHERE WidgetInstId = 10600) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11629;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 10601) END FROM WidgetInst WHERE WidgetInstId = 10601) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11630;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 10602) END FROM WidgetInst WHERE WidgetInstId = 10602) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11631;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 10603) END FROM WidgetInst WHERE WidgetInstId = 10603) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11632;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11717) END FROM WidgetInst WHERE WidgetInstId = 11717) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11724;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11718) END FROM WidgetInst WHERE WidgetInstId = 11718) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11725;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11719) END FROM WidgetInst WHERE WidgetInstId = 11719) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11726;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11720) END FROM WidgetInst WHERE WidgetInstId = 11720) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11727;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11721) END FROM WidgetInst WHERE WidgetInstId = 11721) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11728;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11722) END FROM WidgetInst WHERE WidgetInstId = 11722) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11729;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11723) END FROM WidgetInst WHERE WidgetInstId = 11723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11730;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11717) END FROM WidgetInst WHERE WidgetInstId = 11717) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11738;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11718) END FROM WidgetInst WHERE WidgetInstId = 11718) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11739;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11719) END FROM WidgetInst WHERE WidgetInstId = 11719) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11740;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11720) END FROM WidgetInst WHERE WidgetInstId = 11720) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11741;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11721) END FROM WidgetInst WHERE WidgetInstId = 11721) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11742;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11722) END FROM WidgetInst WHERE WidgetInstId = 11722) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11743;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11723) END FROM WidgetInst WHERE WidgetInstId = 11723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11744;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11717) END FROM WidgetInst WHERE WidgetInstId = 11717) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11752;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11718) END FROM WidgetInst WHERE WidgetInstId = 11718) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11753;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11719) END FROM WidgetInst WHERE WidgetInstId = 11719) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11754;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11720) END FROM WidgetInst WHERE WidgetInstId = 11720) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11755;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11721) END FROM WidgetInst WHERE WidgetInstId = 11721) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11756;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11722) END FROM WidgetInst WHERE WidgetInstId = 11722) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11757;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11723) END FROM WidgetInst WHERE WidgetInstId = 11723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11758;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11759) END FROM WidgetInst WHERE WidgetInstId = 11759) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11717) END FROM WidgetInst WHERE WidgetInstId = 11717)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11766;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11760) END FROM WidgetInst WHERE WidgetInstId = 11760) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11718) END FROM WidgetInst WHERE WidgetInstId = 11718)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11767;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11761) END FROM WidgetInst WHERE WidgetInstId = 11761) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11719) END FROM WidgetInst WHERE WidgetInstId = 11719)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11768;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11762) END FROM WidgetInst WHERE WidgetInstId = 11762) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11720) END FROM WidgetInst WHERE WidgetInstId = 11720)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11769;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11763) END FROM WidgetInst WHERE WidgetInstId = 11763) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11721) END FROM WidgetInst WHERE WidgetInstId = 11721)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11770;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11764) END FROM WidgetInst WHERE WidgetInstId = 11764) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11722) END FROM WidgetInst WHERE WidgetInstId = 11722)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11771;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11765) END FROM WidgetInst WHERE WidgetInstId = 11765) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11723) END FROM WidgetInst WHERE WidgetInstId = 11723)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11772;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11759) END FROM WidgetInst WHERE WidgetInstId = 11759) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11717) END FROM WidgetInst WHERE WidgetInstId = 11717)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11780;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11760) END FROM WidgetInst WHERE WidgetInstId = 11760) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11718) END FROM WidgetInst WHERE WidgetInstId = 11718)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11781;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11761) END FROM WidgetInst WHERE WidgetInstId = 11761) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11719) END FROM WidgetInst WHERE WidgetInstId = 11719)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11782;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11762) END FROM WidgetInst WHERE WidgetInstId = 11762) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11720) END FROM WidgetInst WHERE WidgetInstId = 11720)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11783;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11763) END FROM WidgetInst WHERE WidgetInstId = 11763) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11721) END FROM WidgetInst WHERE WidgetInstId = 11721)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11784;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11764) END FROM WidgetInst WHERE WidgetInstId = 11764) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11722) END FROM WidgetInst WHERE WidgetInstId = 11722)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11785;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11765) END FROM WidgetInst WHERE WidgetInstId = 11765) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11723) END FROM WidgetInst WHERE WidgetInstId = 11723)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11786;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11759) END FROM WidgetInst WHERE WidgetInstId = 11759) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11717) END FROM WidgetInst WHERE WidgetInstId = 11717)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11794;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11760) END FROM WidgetInst WHERE WidgetInstId = 11760) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11718) END FROM WidgetInst WHERE WidgetInstId = 11718)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11795;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11761) END FROM WidgetInst WHERE WidgetInstId = 11761) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11719) END FROM WidgetInst WHERE WidgetInstId = 11719)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11796;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11762) END FROM WidgetInst WHERE WidgetInstId = 11762) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11720) END FROM WidgetInst WHERE WidgetInstId = 11720)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11797;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11763) END FROM WidgetInst WHERE WidgetInstId = 11763) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11721) END FROM WidgetInst WHERE WidgetInstId = 11721)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11798;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11764) END FROM WidgetInst WHERE WidgetInstId = 11764) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11722) END FROM WidgetInst WHERE WidgetInstId = 11722)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11799;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11765) END FROM WidgetInst WHERE WidgetInstId = 11765) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11723) END FROM WidgetInst WHERE WidgetInstId = 11723)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11800;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 10597) END FROM WidgetInst WHERE WidgetInstId = 10597) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11808;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 10598) END FROM WidgetInst WHERE WidgetInstId = 10598) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11809;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 10599) END FROM WidgetInst WHERE WidgetInstId = 10599) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11810;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 10600) END FROM WidgetInst WHERE WidgetInstId = 10600) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11811;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 10601) END FROM WidgetInst WHERE WidgetInstId = 10601) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11812;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 10602) END FROM WidgetInst WHERE WidgetInstId = 10602) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11813;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 10603) END FROM WidgetInst WHERE WidgetInstId = 10603) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11814;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 11822) END FROM WidgetInst WHERE WidgetInstId = 11822) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11829;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 11823) END FROM WidgetInst WHERE WidgetInstId = 11823) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11830;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 11824) END FROM WidgetInst WHERE WidgetInstId = 11824) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11831;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 11825) END FROM WidgetInst WHERE WidgetInstId = 11825) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11832;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 11826) END FROM WidgetInst WHERE WidgetInstId = 11826) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11833;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 11827) END FROM WidgetInst WHERE WidgetInstId = 11827) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11834;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 11828) END FROM WidgetInst WHERE WidgetInstId = 11828) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11835;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11822) END FROM WidgetInst WHERE WidgetInstId = 11822) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11850;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11823) END FROM WidgetInst WHERE WidgetInstId = 11823) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11851;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11824) END FROM WidgetInst WHERE WidgetInstId = 11824) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11852;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11825) END FROM WidgetInst WHERE WidgetInstId = 11825) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11853;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11826) END FROM WidgetInst WHERE WidgetInstId = 11826) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11854;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11827) END FROM WidgetInst WHERE WidgetInstId = 11827) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11855;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11828) END FROM WidgetInst WHERE WidgetInstId = 11828) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11856;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 11822) END FROM WidgetInst WHERE WidgetInstId = 11822) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11871;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 11823) END FROM WidgetInst WHERE WidgetInstId = 11823) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11872;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 11824) END FROM WidgetInst WHERE WidgetInstId = 11824) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11873;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 11825) END FROM WidgetInst WHERE WidgetInstId = 11825) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11874;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 11826) END FROM WidgetInst WHERE WidgetInstId = 11826) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11875;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 11827) END FROM WidgetInst WHERE WidgetInstId = 11827) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11876;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 11828) END FROM WidgetInst WHERE WidgetInstId = 11828) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11877;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 11822) END FROM WidgetInst WHERE WidgetInstId = 11822) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11948;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 11823) END FROM WidgetInst WHERE WidgetInstId = 11823) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11949;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 11824) END FROM WidgetInst WHERE WidgetInstId = 11824) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11950;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 11825) END FROM WidgetInst WHERE WidgetInstId = 11825) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11951;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 11826) END FROM WidgetInst WHERE WidgetInstId = 11826) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11952;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 11827) END FROM WidgetInst WHERE WidgetInstId = 11827) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11953;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 11828) END FROM WidgetInst WHERE WidgetInstId = 11828) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11954;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 10597) END FROM WidgetInst WHERE WidgetInstId = 10597) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11969;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 10598) END FROM WidgetInst WHERE WidgetInstId = 10598) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11970;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 10599) END FROM WidgetInst WHERE WidgetInstId = 10599) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11971;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 10600) END FROM WidgetInst WHERE WidgetInstId = 10600) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11972;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 10601) END FROM WidgetInst WHERE WidgetInstId = 10601) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11973;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 10602) END FROM WidgetInst WHERE WidgetInstId = 10602) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11974;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 10603) END FROM WidgetInst WHERE WidgetInstId = 10603) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11975;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 11990) END FROM WidgetInst WHERE WidgetInstId = 11990) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11997;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 11991) END FROM WidgetInst WHERE WidgetInstId = 11991) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11998;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 11992) END FROM WidgetInst WHERE WidgetInstId = 11992) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11999;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 11993) END FROM WidgetInst WHERE WidgetInstId = 11993) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12000;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 11994) END FROM WidgetInst WHERE WidgetInstId = 11994) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12001;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 11995) END FROM WidgetInst WHERE WidgetInstId = 11995) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12002;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 11996) END FROM WidgetInst WHERE WidgetInstId = 11996) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12003;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11990) END FROM WidgetInst WHERE WidgetInstId = 11990) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12018;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11991) END FROM WidgetInst WHERE WidgetInstId = 11991) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12019;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11992) END FROM WidgetInst WHERE WidgetInstId = 11992) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12020;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11993) END FROM WidgetInst WHERE WidgetInstId = 11993) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12021;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11994) END FROM WidgetInst WHERE WidgetInstId = 11994) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12022;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11995) END FROM WidgetInst WHERE WidgetInstId = 11995) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12023;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11996) END FROM WidgetInst WHERE WidgetInstId = 11996) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12024;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 11990) END FROM WidgetInst WHERE WidgetInstId = 11990) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12039;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 11991) END FROM WidgetInst WHERE WidgetInstId = 11991) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12040;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 11992) END FROM WidgetInst WHERE WidgetInstId = 11992) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12041;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 11993) END FROM WidgetInst WHERE WidgetInstId = 11993) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12042;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 11994) END FROM WidgetInst WHERE WidgetInstId = 11994) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12043;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 11995) END FROM WidgetInst WHERE WidgetInstId = 11995) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12044;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 11996) END FROM WidgetInst WHERE WidgetInstId = 11996) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12045;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 11990) END FROM WidgetInst WHERE WidgetInstId = 11990) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12116;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 11991) END FROM WidgetInst WHERE WidgetInstId = 11991) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12117;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 11992) END FROM WidgetInst WHERE WidgetInstId = 11992) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12118;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 11993) END FROM WidgetInst WHERE WidgetInstId = 11993) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12119;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 11994) END FROM WidgetInst WHERE WidgetInstId = 11994) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12120;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 11995) END FROM WidgetInst WHERE WidgetInstId = 11995) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12121;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 11996) END FROM WidgetInst WHERE WidgetInstId = 11996) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12122;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 12144) END FROM WidgetInst WHERE WidgetInstId = 12144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12151;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 12145) END FROM WidgetInst WHERE WidgetInstId = 12145) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12152;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 12146) END FROM WidgetInst WHERE WidgetInstId = 12146) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12153;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 12147) END FROM WidgetInst WHERE WidgetInstId = 12147) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12154;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 12148) END FROM WidgetInst WHERE WidgetInstId = 12148) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12155;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 12149) END FROM WidgetInst WHERE WidgetInstId = 12149) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12156;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 12150) END FROM WidgetInst WHERE WidgetInstId = 12150) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12157;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12144) END FROM WidgetInst WHERE WidgetInstId = 12144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12165;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12145) END FROM WidgetInst WHERE WidgetInstId = 12145) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12166;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12146) END FROM WidgetInst WHERE WidgetInstId = 12146) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12167;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12147) END FROM WidgetInst WHERE WidgetInstId = 12147) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12168;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12148) END FROM WidgetInst WHERE WidgetInstId = 12148) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12169;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12149) END FROM WidgetInst WHERE WidgetInstId = 12149) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12170;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12150) END FROM WidgetInst WHERE WidgetInstId = 12150) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12171;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12144) END FROM WidgetInst WHERE WidgetInstId = 12144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12179;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12145) END FROM WidgetInst WHERE WidgetInstId = 12145) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12180;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12146) END FROM WidgetInst WHERE WidgetInstId = 12146) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12181;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12147) END FROM WidgetInst WHERE WidgetInstId = 12147) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12182;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12148) END FROM WidgetInst WHERE WidgetInstId = 12148) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12183;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12149) END FROM WidgetInst WHERE WidgetInstId = 12149) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12184;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12150) END FROM WidgetInst WHERE WidgetInstId = 12150) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12185;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12144) END FROM WidgetInst WHERE WidgetInstId = 12144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12193;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12145) END FROM WidgetInst WHERE WidgetInstId = 12145) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12194;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12146) END FROM WidgetInst WHERE WidgetInstId = 12146) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12195;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12147) END FROM WidgetInst WHERE WidgetInstId = 12147) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12196;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12148) END FROM WidgetInst WHERE WidgetInstId = 12148) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12197;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12149) END FROM WidgetInst WHERE WidgetInstId = 12149) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12198;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12150) END FROM WidgetInst WHERE WidgetInstId = 12150) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12199;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12144) END FROM WidgetInst WHERE WidgetInstId = 12144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12207;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12145) END FROM WidgetInst WHERE WidgetInstId = 12145) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12208;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12146) END FROM WidgetInst WHERE WidgetInstId = 12146) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12209;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12147) END FROM WidgetInst WHERE WidgetInstId = 12147) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12210;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12148) END FROM WidgetInst WHERE WidgetInstId = 12148) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12211;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12149) END FROM WidgetInst WHERE WidgetInstId = 12149) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12212;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12150) END FROM WidgetInst WHERE WidgetInstId = 12150) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12213;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12144) END FROM WidgetInst WHERE WidgetInstId = 12144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12221;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12145) END FROM WidgetInst WHERE WidgetInstId = 12145) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12222;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12146) END FROM WidgetInst WHERE WidgetInstId = 12146) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12223;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12147) END FROM WidgetInst WHERE WidgetInstId = 12147) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12224;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12148) END FROM WidgetInst WHERE WidgetInstId = 12148) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12225;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12149) END FROM WidgetInst WHERE WidgetInstId = 12149) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12226;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12150) END FROM WidgetInst WHERE WidgetInstId = 12150) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12227;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 10597) END FROM WidgetInst WHERE WidgetInstId = 10597) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 10202) END FROM WidgetInst WHERE WidgetInstId = 10202)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12235;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 10598) END FROM WidgetInst WHERE WidgetInstId = 10598) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 10202) END FROM WidgetInst WHERE WidgetInstId = 10202)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12236;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 10599) END FROM WidgetInst WHERE WidgetInstId = 10599) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 10202) END FROM WidgetInst WHERE WidgetInstId = 10202)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12237;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 10600) END FROM WidgetInst WHERE WidgetInstId = 10600) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 10202) END FROM WidgetInst WHERE WidgetInstId = 10202)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12238;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 10601) END FROM WidgetInst WHERE WidgetInstId = 10601) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 10202) END FROM WidgetInst WHERE WidgetInstId = 10202)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12239;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 10602) END FROM WidgetInst WHERE WidgetInstId = 10602) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 10202) END FROM WidgetInst WHERE WidgetInstId = 10202)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12240;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 10603) END FROM WidgetInst WHERE WidgetInstId = 10603) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 10202) END FROM WidgetInst WHERE WidgetInstId = 10202)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12241;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 12249) END FROM WidgetInst WHERE WidgetInstId = 12249) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12256;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 12250) END FROM WidgetInst WHERE WidgetInstId = 12250) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12257;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 12251) END FROM WidgetInst WHERE WidgetInstId = 12251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12258;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 12252) END FROM WidgetInst WHERE WidgetInstId = 12252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12259;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 12253) END FROM WidgetInst WHERE WidgetInstId = 12253) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12260;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 12254) END FROM WidgetInst WHERE WidgetInstId = 12254) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12261;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 12255) END FROM WidgetInst WHERE WidgetInstId = 12255) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12262;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 12274;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 12274;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 12274;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 12274;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 12274;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 12274;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 12275;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 12275;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 12275;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 12275;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 12275;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 12275;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 12274) END FROM WidgetInst WHERE WidgetInstId = 12274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12276;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 12275) END FROM WidgetInst WHERE WidgetInstId = 12275) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12277;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 12280) END FROM WidgetInst WHERE WidgetInstId = 12280) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12282;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 12281) END FROM WidgetInst WHERE WidgetInstId = 12281) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12283;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 12274) END FROM WidgetInst WHERE WidgetInstId = 12274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12286;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 12275) END FROM WidgetInst WHERE WidgetInstId = 12275) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12287;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 10199) END FROM WidgetInst WHERE WidgetInstId = 10199) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12298;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 10199) END FROM WidgetInst WHERE WidgetInstId = 10199) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12299;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 10199) END FROM WidgetInst WHERE WidgetInstId = 10199) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12304;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 10199) END FROM WidgetInst WHERE WidgetInstId = 10199) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12305;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 12274) END FROM WidgetInst WHERE WidgetInstId = 12274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12310;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 12275) END FROM WidgetInst WHERE WidgetInstId = 12275) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12311;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12314) END FROM WidgetInst WHERE WidgetInstId = 12314) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12316;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12315) END FROM WidgetInst WHERE WidgetInstId = 12315) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12317;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12314) END FROM WidgetInst WHERE WidgetInstId = 12314) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12322;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12315) END FROM WidgetInst WHERE WidgetInstId = 12315) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12323;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 12274) END FROM WidgetInst WHERE WidgetInstId = 12274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12328;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 12275) END FROM WidgetInst WHERE WidgetInstId = 12275) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12329;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12332) END FROM WidgetInst WHERE WidgetInstId = 12332) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12334;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12333) END FROM WidgetInst WHERE WidgetInstId = 12333) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12335;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12332) END FROM WidgetInst WHERE WidgetInstId = 12332) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12340;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12333) END FROM WidgetInst WHERE WidgetInstId = 12333) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12341;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 12332) END FROM WidgetInst WHERE WidgetInstId = 12332) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12346;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 12333) END FROM WidgetInst WHERE WidgetInstId = 12333) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12347;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12274) END FROM WidgetInst WHERE WidgetInstId = 12274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12352;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12275) END FROM WidgetInst WHERE WidgetInstId = 12275) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12353;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12274) END FROM WidgetInst WHERE WidgetInstId = 12274) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12356) END FROM WidgetInst WHERE WidgetInstId = 12356)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12362;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12275) END FROM WidgetInst WHERE WidgetInstId = 12275) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12357) END FROM WidgetInst WHERE WidgetInstId = 12357)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12363;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 12360) END FROM WidgetInst WHERE WidgetInstId = 12360) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12368;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 12361) END FROM WidgetInst WHERE WidgetInstId = 12361) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12369;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 12360) END FROM WidgetInst WHERE WidgetInstId = 12360) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12370;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 12361) END FROM WidgetInst WHERE WidgetInstId = 12361) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12371;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 12360) END FROM WidgetInst WHERE WidgetInstId = 12360) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12376;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 12361) END FROM WidgetInst WHERE WidgetInstId = 12361) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12377;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 12360) END FROM WidgetInst WHERE WidgetInstId = 12360) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12378;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 12361) END FROM WidgetInst WHERE WidgetInstId = 12361) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12379;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12274) END FROM WidgetInst WHERE WidgetInstId = 12274) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12356) END FROM WidgetInst WHERE WidgetInstId = 12356)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12380;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12275) END FROM WidgetInst WHERE WidgetInstId = 12275) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12357) END FROM WidgetInst WHERE WidgetInstId = 12357)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12381;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 12360) END FROM WidgetInst WHERE WidgetInstId = 12360) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12386;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 12361) END FROM WidgetInst WHERE WidgetInstId = 12361) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12387;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 12360) END FROM WidgetInst WHERE WidgetInstId = 12360) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12388;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 12361) END FROM WidgetInst WHERE WidgetInstId = 12361) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12389;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12392) END FROM WidgetInst WHERE WidgetInstId = 12392) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12394;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12393) END FROM WidgetInst WHERE WidgetInstId = 12393) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12395;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 12360) END FROM WidgetInst WHERE WidgetInstId = 12360) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12398;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 12361) END FROM WidgetInst WHERE WidgetInstId = 12361) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12399;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 12360) END FROM WidgetInst WHERE WidgetInstId = 12360) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12400;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 12361) END FROM WidgetInst WHERE WidgetInstId = 12361) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12401;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 12392) END FROM WidgetInst WHERE WidgetInstId = 12392) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12402;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 12393) END FROM WidgetInst WHERE WidgetInstId = 12393) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12403;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 12360) END FROM WidgetInst WHERE WidgetInstId = 12360) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12406;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 12361) END FROM WidgetInst WHERE WidgetInstId = 12361) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12407;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 12360) END FROM WidgetInst WHERE WidgetInstId = 12360) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12408;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 12361) END FROM WidgetInst WHERE WidgetInstId = 12361) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12409;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12274) END FROM WidgetInst WHERE WidgetInstId = 12274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12410;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12275) END FROM WidgetInst WHERE WidgetInstId = 12275) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12411;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 12274) END FROM WidgetInst WHERE WidgetInstId = 12274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12416;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 12275) END FROM WidgetInst WHERE WidgetInstId = 12275) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12417;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12482) END FROM WidgetInst WHERE WidgetInstId = 12482) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12484;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12483) END FROM WidgetInst WHERE WidgetInstId = 12483) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12485;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12482) END FROM WidgetInst WHERE WidgetInstId = 12482) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12488;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12483) END FROM WidgetInst WHERE WidgetInstId = 12483) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12489;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12482) END FROM WidgetInst WHERE WidgetInstId = 12482) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12492;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12483) END FROM WidgetInst WHERE WidgetInstId = 12483) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12493;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12274) END FROM WidgetInst WHERE WidgetInstId = 12274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12496;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12275) END FROM WidgetInst WHERE WidgetInstId = 12275) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12497;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12514) END FROM WidgetInst WHERE WidgetInstId = 12514) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12516;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12515) END FROM WidgetInst WHERE WidgetInstId = 12515) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12517;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12514) END FROM WidgetInst WHERE WidgetInstId = 12514) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12520;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12515) END FROM WidgetInst WHERE WidgetInstId = 12515) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12521;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12514) END FROM WidgetInst WHERE WidgetInstId = 12514) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12524;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12515) END FROM WidgetInst WHERE WidgetInstId = 12515) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12525;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 12274) END FROM WidgetInst WHERE WidgetInstId = 12274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12528;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 12275) END FROM WidgetInst WHERE WidgetInstId = 12275) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12529;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12554) END FROM WidgetInst WHERE WidgetInstId = 12554) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12556;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12555) END FROM WidgetInst WHERE WidgetInstId = 12555) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12557;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12554) END FROM WidgetInst WHERE WidgetInstId = 12554) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12560;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12555) END FROM WidgetInst WHERE WidgetInstId = 12555) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12561;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12554) END FROM WidgetInst WHERE WidgetInstId = 12554) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12564;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12555) END FROM WidgetInst WHERE WidgetInstId = 12555) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12565;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 12274) END FROM WidgetInst WHERE WidgetInstId = 12274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12568;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 12275) END FROM WidgetInst WHERE WidgetInstId = 12275) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12569;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 12594) END FROM WidgetInst WHERE WidgetInstId = 12594) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12596;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 12595) END FROM WidgetInst WHERE WidgetInstId = 12595) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12597;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 12594) END FROM WidgetInst WHERE WidgetInstId = 12594) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12600;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 12595) END FROM WidgetInst WHERE WidgetInstId = 12595) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12601;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 12594) END FROM WidgetInst WHERE WidgetInstId = 12594) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12604;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 12595) END FROM WidgetInst WHERE WidgetInstId = 12595) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12605;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12606) END FROM WidgetInst WHERE WidgetInstId = 12606) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 12594) END FROM WidgetInst WHERE WidgetInstId = 12594)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12608;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12607) END FROM WidgetInst WHERE WidgetInstId = 12607) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 12595) END FROM WidgetInst WHERE WidgetInstId = 12595)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12609;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12606) END FROM WidgetInst WHERE WidgetInstId = 12606) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 12594) END FROM WidgetInst WHERE WidgetInstId = 12594)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12612;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12607) END FROM WidgetInst WHERE WidgetInstId = 12607) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 12595) END FROM WidgetInst WHERE WidgetInstId = 12595)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12613;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12606) END FROM WidgetInst WHERE WidgetInstId = 12606) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 12594) END FROM WidgetInst WHERE WidgetInstId = 12594)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12616;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12607) END FROM WidgetInst WHERE WidgetInstId = 12607) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 12595) END FROM WidgetInst WHERE WidgetInstId = 12595)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12617;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 12274) END FROM WidgetInst WHERE WidgetInstId = 12274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12620;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 12275) END FROM WidgetInst WHERE WidgetInstId = 12275) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12621;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12624) END FROM WidgetInst WHERE WidgetInstId = 12624) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12626;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12625) END FROM WidgetInst WHERE WidgetInstId = 12625) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12627;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12624) END FROM WidgetInst WHERE WidgetInstId = 12624) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12632;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12625) END FROM WidgetInst WHERE WidgetInstId = 12625) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12633;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12624) END FROM WidgetInst WHERE WidgetInstId = 12624) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12638;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12625) END FROM WidgetInst WHERE WidgetInstId = 12625) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12639;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 12624) END FROM WidgetInst WHERE WidgetInstId = 12624) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12660;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 12625) END FROM WidgetInst WHERE WidgetInstId = 12625) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12661;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 12274) END FROM WidgetInst WHERE WidgetInstId = 12274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12666;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 12275) END FROM WidgetInst WHERE WidgetInstId = 12275) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12667;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12672) END FROM WidgetInst WHERE WidgetInstId = 12672) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12674;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12673) END FROM WidgetInst WHERE WidgetInstId = 12673) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12675;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12672) END FROM WidgetInst WHERE WidgetInstId = 12672) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12680;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12673) END FROM WidgetInst WHERE WidgetInstId = 12673) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12681;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12672) END FROM WidgetInst WHERE WidgetInstId = 12672) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12686;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12673) END FROM WidgetInst WHERE WidgetInstId = 12673) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12687;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 12672) END FROM WidgetInst WHERE WidgetInstId = 12672) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12708;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 12673) END FROM WidgetInst WHERE WidgetInstId = 12673) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12709;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 12716) END FROM WidgetInst WHERE WidgetInstId = 12716) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12718;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 12717) END FROM WidgetInst WHERE WidgetInstId = 12717) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12719;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12716) END FROM WidgetInst WHERE WidgetInstId = 12716) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12722;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12717) END FROM WidgetInst WHERE WidgetInstId = 12717) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12723;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12716) END FROM WidgetInst WHERE WidgetInstId = 12716) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12726;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12717) END FROM WidgetInst WHERE WidgetInstId = 12717) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12727;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12716) END FROM WidgetInst WHERE WidgetInstId = 12716) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12730;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12717) END FROM WidgetInst WHERE WidgetInstId = 12717) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12731;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12716) END FROM WidgetInst WHERE WidgetInstId = 12716) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12734;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12717) END FROM WidgetInst WHERE WidgetInstId = 12717) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12735;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12716) END FROM WidgetInst WHERE WidgetInstId = 12716) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12738;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12717) END FROM WidgetInst WHERE WidgetInstId = 12717) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12739;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12274) END FROM WidgetInst WHERE WidgetInstId = 12274) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 10202) END FROM WidgetInst WHERE WidgetInstId = 10202)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12742;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12275) END FROM WidgetInst WHERE WidgetInstId = 12275) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 10202) END FROM WidgetInst WHERE WidgetInstId = 10202)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12743;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 12746) END FROM WidgetInst WHERE WidgetInstId = 12746) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12748;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 12747) END FROM WidgetInst WHERE WidgetInstId = 12747) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12749;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Flow' AND WidgetInstId = 12804) END FROM WidgetInst WHERE WidgetInstId = 12804) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12805;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12804) END FROM WidgetInst WHERE WidgetInstId = 12804) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12807;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mixed' AND WidgetInstId = 12812) END FROM WidgetInst WHERE WidgetInstId = 12812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12813;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 12812) END FROM WidgetInst WHERE WidgetInstId = 12812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12821;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 12817) END FROM WidgetInst WHERE WidgetInstId = 12817) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12823;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 12819) END FROM WidgetInst WHERE WidgetInstId = 12819) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12825;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 12812) END FROM WidgetInst WHERE WidgetInstId = 12812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12827;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 12817) END FROM WidgetInst WHERE WidgetInstId = 12817) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12829;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 12819) END FROM WidgetInst WHERE WidgetInstId = 12819) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12831;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 12812) END FROM WidgetInst WHERE WidgetInstId = 12812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12833;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 12817) END FROM WidgetInst WHERE WidgetInstId = 12817) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12835;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 12819) END FROM WidgetInst WHERE WidgetInstId = 12819) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12837;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 12812) END FROM WidgetInst WHERE WidgetInstId = 12812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12839;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 12817) END FROM WidgetInst WHERE WidgetInstId = 12817) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12841;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 12819) END FROM WidgetInst WHERE WidgetInstId = 12819) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12843;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 12812) END FROM WidgetInst WHERE WidgetInstId = 12812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12845;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 12817) END FROM WidgetInst WHERE WidgetInstId = 12817) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12847;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 12819) END FROM WidgetInst WHERE WidgetInstId = 12819) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12849;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 12812) END FROM WidgetInst WHERE WidgetInstId = 12812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12851;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 12817) END FROM WidgetInst WHERE WidgetInstId = 12817) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12853;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 12819) END FROM WidgetInst WHERE WidgetInstId = 12819) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12855;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 12812) END FROM WidgetInst WHERE WidgetInstId = 12812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12857;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 12817) END FROM WidgetInst WHERE WidgetInstId = 12817) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12859;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 12819) END FROM WidgetInst WHERE WidgetInstId = 12819) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12861;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 12812) END FROM WidgetInst WHERE WidgetInstId = 12812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12863;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 12812) END FROM WidgetInst WHERE WidgetInstId = 12812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12865;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 12812) END FROM WidgetInst WHERE WidgetInstId = 12812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12867;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Aw' AND WidgetInstId = 12812) END FROM WidgetInst WHERE WidgetInstId = 12812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12869;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rijn' AND WidgetInstId = 12812) END FROM WidgetInst WHERE WidgetInstId = 12812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12871;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Seminara' AND WidgetInstId = 12812) END FROM WidgetInst WHERE WidgetInstId = 12812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12873;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Seminara' AND WidgetInstId = 12812) END FROM WidgetInst WHERE WidgetInstId = 12812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12875;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 12812) END FROM WidgetInst WHERE WidgetInstId = 12812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12877;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 12812) END FROM WidgetInst WHERE WidgetInstId = 12812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12879;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 12812) END FROM WidgetInst WHERE WidgetInstId = 12812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12881;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 12812) END FROM WidgetInst WHERE WidgetInstId = 12812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12883;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant Length' AND WidgetInstId = 12896) END FROM WidgetInst WHERE WidgetInstId = 12896) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12897;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 12906) END FROM WidgetInst WHERE WidgetInstId = 12906) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12907;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Data File' AND WidgetInstId = 12909) END FROM WidgetInst WHERE WidgetInstId = 12909) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12910;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Data File' AND WidgetInstId = 12914) END FROM WidgetInst WHERE WidgetInstId = 12914) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12915;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Input Parameters' AND WidgetInstId = 12914) END FROM WidgetInst WHERE WidgetInstId = 12914) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12917;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 12906) END FROM WidgetInst WHERE WidgetInstId = 12906) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12932;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 12946;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 12946;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 12946;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 12946;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 12946;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 12946;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 12946) END FROM WidgetInst WHERE WidgetInstId = 12946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12947;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 12949) END FROM WidgetInst WHERE WidgetInstId = 12949) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12950;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 12946) END FROM WidgetInst WHERE WidgetInstId = 12946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12952;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 32) END FROM WidgetInst WHERE WidgetInstId = 32) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12958;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 32) END FROM WidgetInst WHERE WidgetInstId = 32) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12961;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 12946) END FROM WidgetInst WHERE WidgetInstId = 12946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12964;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12966) END FROM WidgetInst WHERE WidgetInstId = 12966) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12967;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12966) END FROM WidgetInst WHERE WidgetInstId = 12966) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12970;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 12946) END FROM WidgetInst WHERE WidgetInstId = 12946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12973;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12975) END FROM WidgetInst WHERE WidgetInstId = 12975) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12976;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12975) END FROM WidgetInst WHERE WidgetInstId = 12975) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12979;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 12975) END FROM WidgetInst WHERE WidgetInstId = 12975) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12982;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12946) END FROM WidgetInst WHERE WidgetInstId = 12946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12985;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12946) END FROM WidgetInst WHERE WidgetInstId = 12946) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12987) END FROM WidgetInst WHERE WidgetInstId = 12987)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12990;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 12989) END FROM WidgetInst WHERE WidgetInstId = 12989) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12993;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 12989) END FROM WidgetInst WHERE WidgetInstId = 12989) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12994;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 12989) END FROM WidgetInst WHERE WidgetInstId = 12989) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12997;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 12989) END FROM WidgetInst WHERE WidgetInstId = 12989) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12998;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12946) END FROM WidgetInst WHERE WidgetInstId = 12946) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12987) END FROM WidgetInst WHERE WidgetInstId = 12987)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12999;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 12989) END FROM WidgetInst WHERE WidgetInstId = 12989) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13002;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 12989) END FROM WidgetInst WHERE WidgetInstId = 12989) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13003;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13005) END FROM WidgetInst WHERE WidgetInstId = 13005) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13006;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 12989) END FROM WidgetInst WHERE WidgetInstId = 12989) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13008;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 12989) END FROM WidgetInst WHERE WidgetInstId = 12989) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13009;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13005) END FROM WidgetInst WHERE WidgetInstId = 13005) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13010;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 12989) END FROM WidgetInst WHERE WidgetInstId = 12989) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13012;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 12989) END FROM WidgetInst WHERE WidgetInstId = 12989) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13013;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12946) END FROM WidgetInst WHERE WidgetInstId = 12946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13014;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 12946) END FROM WidgetInst WHERE WidgetInstId = 12946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13017;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13050) END FROM WidgetInst WHERE WidgetInstId = 13050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13051;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13050) END FROM WidgetInst WHERE WidgetInstId = 13050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13053;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13050) END FROM WidgetInst WHERE WidgetInstId = 13050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13055;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12946) END FROM WidgetInst WHERE WidgetInstId = 12946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13057;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13066) END FROM WidgetInst WHERE WidgetInstId = 13066) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13067;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13066) END FROM WidgetInst WHERE WidgetInstId = 13066) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13069;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13066) END FROM WidgetInst WHERE WidgetInstId = 13066) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13071;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 12946) END FROM WidgetInst WHERE WidgetInstId = 12946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13073;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13086) END FROM WidgetInst WHERE WidgetInstId = 13086) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13087;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13086) END FROM WidgetInst WHERE WidgetInstId = 13086) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13089;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13086) END FROM WidgetInst WHERE WidgetInstId = 13086) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13091;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 12946) END FROM WidgetInst WHERE WidgetInstId = 12946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13093;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13106) END FROM WidgetInst WHERE WidgetInstId = 13106) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13107;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13106) END FROM WidgetInst WHERE WidgetInstId = 13106) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13109;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13106) END FROM WidgetInst WHERE WidgetInstId = 13106) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13111;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13112) END FROM WidgetInst WHERE WidgetInstId = 13112) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13106) END FROM WidgetInst WHERE WidgetInstId = 13106)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13113;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13112) END FROM WidgetInst WHERE WidgetInstId = 13112) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13106) END FROM WidgetInst WHERE WidgetInstId = 13106)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13115;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13112) END FROM WidgetInst WHERE WidgetInstId = 13112) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13106) END FROM WidgetInst WHERE WidgetInstId = 13106)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13117;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 12946) END FROM WidgetInst WHERE WidgetInstId = 12946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13119;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13121) END FROM WidgetInst WHERE WidgetInstId = 13121) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13122;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13121) END FROM WidgetInst WHERE WidgetInstId = 13121) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13125;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 13121) END FROM WidgetInst WHERE WidgetInstId = 13121) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13128;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 13121) END FROM WidgetInst WHERE WidgetInstId = 13121) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13139;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 12946) END FROM WidgetInst WHERE WidgetInstId = 12946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13142;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13145) END FROM WidgetInst WHERE WidgetInstId = 13145) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13146;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13145) END FROM WidgetInst WHERE WidgetInstId = 13145) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13149;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 13145) END FROM WidgetInst WHERE WidgetInstId = 13145) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13152;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 13145) END FROM WidgetInst WHERE WidgetInstId = 13145) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13163;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 13167) END FROM WidgetInst WHERE WidgetInstId = 13167) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13168;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13167) END FROM WidgetInst WHERE WidgetInstId = 13167) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13170;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13167) END FROM WidgetInst WHERE WidgetInstId = 13167) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13172;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13167) END FROM WidgetInst WHERE WidgetInstId = 13167) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13174;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13167) END FROM WidgetInst WHERE WidgetInstId = 13167) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13176;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13167) END FROM WidgetInst WHERE WidgetInstId = 13167) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13178;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 177) END FROM WidgetInst WHERE WidgetInstId = 177) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 35) END FROM WidgetInst WHERE WidgetInstId = 35)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13180;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 13182) END FROM WidgetInst WHERE WidgetInstId = 13182) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13183;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 13199;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 13199;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 13199;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 13199;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 13199;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 13199;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 13200;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 13200;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 13200;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 13200;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 13200;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 13200;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 13201;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 13201;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 13201;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 13201;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 13201;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 13201;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 13202;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 13202;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 13202;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 13202;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 13202;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 13202;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 13203;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 13203;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 13203;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 13203;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 13203;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 13203;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 13204;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 13204;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 13204;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 13204;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 13204;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 13204;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 13205;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 13205;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 13205;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 13205;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 13205;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 13205;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 13199) END FROM WidgetInst WHERE WidgetInstId = 13199) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13206;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 13200) END FROM WidgetInst WHERE WidgetInstId = 13200) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13207;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 13201) END FROM WidgetInst WHERE WidgetInstId = 13201) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13208;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 13202) END FROM WidgetInst WHERE WidgetInstId = 13202) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13209;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 13203) END FROM WidgetInst WHERE WidgetInstId = 13203) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13210;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 13204) END FROM WidgetInst WHERE WidgetInstId = 13204) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13211;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 13205) END FROM WidgetInst WHERE WidgetInstId = 13205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13212;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 13220) END FROM WidgetInst WHERE WidgetInstId = 13220) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13227;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 13221) END FROM WidgetInst WHERE WidgetInstId = 13221) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13228;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 13222) END FROM WidgetInst WHERE WidgetInstId = 13222) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13229;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 13223) END FROM WidgetInst WHERE WidgetInstId = 13223) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13230;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 13224) END FROM WidgetInst WHERE WidgetInstId = 13224) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13231;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 13225) END FROM WidgetInst WHERE WidgetInstId = 13225) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13232;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 13226) END FROM WidgetInst WHERE WidgetInstId = 13226) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13233;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 13199) END FROM WidgetInst WHERE WidgetInstId = 13199) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13241;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 13200) END FROM WidgetInst WHERE WidgetInstId = 13200) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13242;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 13201) END FROM WidgetInst WHERE WidgetInstId = 13201) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13243;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 13202) END FROM WidgetInst WHERE WidgetInstId = 13202) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13244;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 13203) END FROM WidgetInst WHERE WidgetInstId = 13203) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13245;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 13204) END FROM WidgetInst WHERE WidgetInstId = 13204) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13246;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 13205) END FROM WidgetInst WHERE WidgetInstId = 13205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13247;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 12801) END FROM WidgetInst WHERE WidgetInstId = 12801) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13283;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 12801) END FROM WidgetInst WHERE WidgetInstId = 12801) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13284;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 12801) END FROM WidgetInst WHERE WidgetInstId = 12801) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13285;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 12801) END FROM WidgetInst WHERE WidgetInstId = 12801) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13286;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 12801) END FROM WidgetInst WHERE WidgetInstId = 12801) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13287;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 12801) END FROM WidgetInst WHERE WidgetInstId = 12801) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13288;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 12801) END FROM WidgetInst WHERE WidgetInstId = 12801) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13289;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 12801) END FROM WidgetInst WHERE WidgetInstId = 12801) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13304;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 12801) END FROM WidgetInst WHERE WidgetInstId = 12801) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13305;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 12801) END FROM WidgetInst WHERE WidgetInstId = 12801) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13306;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 12801) END FROM WidgetInst WHERE WidgetInstId = 12801) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13307;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 12801) END FROM WidgetInst WHERE WidgetInstId = 12801) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13308;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 12801) END FROM WidgetInst WHERE WidgetInstId = 12801) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13309;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 12801) END FROM WidgetInst WHERE WidgetInstId = 12801) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13310;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 13199) END FROM WidgetInst WHERE WidgetInstId = 13199) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13325;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 13200) END FROM WidgetInst WHERE WidgetInstId = 13200) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13326;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 13201) END FROM WidgetInst WHERE WidgetInstId = 13201) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13327;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 13202) END FROM WidgetInst WHERE WidgetInstId = 13202) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13328;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 13203) END FROM WidgetInst WHERE WidgetInstId = 13203) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13329;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 13204) END FROM WidgetInst WHERE WidgetInstId = 13204) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13330;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 13205) END FROM WidgetInst WHERE WidgetInstId = 13205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13331;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13339) END FROM WidgetInst WHERE WidgetInstId = 13339) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13346;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13340) END FROM WidgetInst WHERE WidgetInstId = 13340) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13347;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13341) END FROM WidgetInst WHERE WidgetInstId = 13341) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13348;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13342) END FROM WidgetInst WHERE WidgetInstId = 13342) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13349;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13343) END FROM WidgetInst WHERE WidgetInstId = 13343) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13350;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13344) END FROM WidgetInst WHERE WidgetInstId = 13344) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13351;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13345) END FROM WidgetInst WHERE WidgetInstId = 13345) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13352;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13339) END FROM WidgetInst WHERE WidgetInstId = 13339) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13367;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13340) END FROM WidgetInst WHERE WidgetInstId = 13340) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13368;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13341) END FROM WidgetInst WHERE WidgetInstId = 13341) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13369;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13342) END FROM WidgetInst WHERE WidgetInstId = 13342) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13370;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13343) END FROM WidgetInst WHERE WidgetInstId = 13343) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13371;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13344) END FROM WidgetInst WHERE WidgetInstId = 13344) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13372;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13345) END FROM WidgetInst WHERE WidgetInstId = 13345) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13373;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 13199) END FROM WidgetInst WHERE WidgetInstId = 13199) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13388;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 13200) END FROM WidgetInst WHERE WidgetInstId = 13200) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13389;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 13201) END FROM WidgetInst WHERE WidgetInstId = 13201) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13390;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 13202) END FROM WidgetInst WHERE WidgetInstId = 13202) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13391;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 13203) END FROM WidgetInst WHERE WidgetInstId = 13203) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13392;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 13204) END FROM WidgetInst WHERE WidgetInstId = 13204) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13393;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 13205) END FROM WidgetInst WHERE WidgetInstId = 13205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13394;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13402) END FROM WidgetInst WHERE WidgetInstId = 13402) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13409;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13403) END FROM WidgetInst WHERE WidgetInstId = 13403) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13410;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13404) END FROM WidgetInst WHERE WidgetInstId = 13404) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13411;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13405) END FROM WidgetInst WHERE WidgetInstId = 13405) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13412;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13406) END FROM WidgetInst WHERE WidgetInstId = 13406) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13413;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13407) END FROM WidgetInst WHERE WidgetInstId = 13407) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13414;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13408) END FROM WidgetInst WHERE WidgetInstId = 13408) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13415;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13402) END FROM WidgetInst WHERE WidgetInstId = 13402) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13430;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13403) END FROM WidgetInst WHERE WidgetInstId = 13403) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13431;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13404) END FROM WidgetInst WHERE WidgetInstId = 13404) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13432;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13405) END FROM WidgetInst WHERE WidgetInstId = 13405) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13433;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13406) END FROM WidgetInst WHERE WidgetInstId = 13406) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13434;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13407) END FROM WidgetInst WHERE WidgetInstId = 13407) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13435;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13408) END FROM WidgetInst WHERE WidgetInstId = 13408) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13436;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13402) END FROM WidgetInst WHERE WidgetInstId = 13402) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13451;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13403) END FROM WidgetInst WHERE WidgetInstId = 13403) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13452;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13404) END FROM WidgetInst WHERE WidgetInstId = 13404) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13453;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13405) END FROM WidgetInst WHERE WidgetInstId = 13405) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13454;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13406) END FROM WidgetInst WHERE WidgetInstId = 13406) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13455;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13407) END FROM WidgetInst WHERE WidgetInstId = 13407) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13456;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13408) END FROM WidgetInst WHERE WidgetInstId = 13408) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13457;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13199) END FROM WidgetInst WHERE WidgetInstId = 13199) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13472;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13200) END FROM WidgetInst WHERE WidgetInstId = 13200) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13473;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13201) END FROM WidgetInst WHERE WidgetInstId = 13201) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13474;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13202) END FROM WidgetInst WHERE WidgetInstId = 13202) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13475;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13203) END FROM WidgetInst WHERE WidgetInstId = 13203) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13476;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13204) END FROM WidgetInst WHERE WidgetInstId = 13204) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13477;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13205) END FROM WidgetInst WHERE WidgetInstId = 13205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13478;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13199) END FROM WidgetInst WHERE WidgetInstId = 13199) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13486) END FROM WidgetInst WHERE WidgetInstId = 13486)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13507;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13200) END FROM WidgetInst WHERE WidgetInstId = 13200) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13487) END FROM WidgetInst WHERE WidgetInstId = 13487)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13508;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13201) END FROM WidgetInst WHERE WidgetInstId = 13201) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13488) END FROM WidgetInst WHERE WidgetInstId = 13488)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13509;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13202) END FROM WidgetInst WHERE WidgetInstId = 13202) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13489) END FROM WidgetInst WHERE WidgetInstId = 13489)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13510;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13203) END FROM WidgetInst WHERE WidgetInstId = 13203) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13490) END FROM WidgetInst WHERE WidgetInstId = 13490)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13511;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13204) END FROM WidgetInst WHERE WidgetInstId = 13204) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13491) END FROM WidgetInst WHERE WidgetInstId = 13491)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13512;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13205) END FROM WidgetInst WHERE WidgetInstId = 13205) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13492) END FROM WidgetInst WHERE WidgetInstId = 13492)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13513;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13500) END FROM WidgetInst WHERE WidgetInstId = 13500) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13528;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13501) END FROM WidgetInst WHERE WidgetInstId = 13501) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13529;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13502) END FROM WidgetInst WHERE WidgetInstId = 13502) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13530;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13503) END FROM WidgetInst WHERE WidgetInstId = 13503) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13531;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13504) END FROM WidgetInst WHERE WidgetInstId = 13504) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13532;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13505) END FROM WidgetInst WHERE WidgetInstId = 13505) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13533;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13506) END FROM WidgetInst WHERE WidgetInstId = 13506) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13534;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13500) END FROM WidgetInst WHERE WidgetInstId = 13500) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13535;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13501) END FROM WidgetInst WHERE WidgetInstId = 13501) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13536;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13502) END FROM WidgetInst WHERE WidgetInstId = 13502) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13537;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13503) END FROM WidgetInst WHERE WidgetInstId = 13503) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13538;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13504) END FROM WidgetInst WHERE WidgetInstId = 13504) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13539;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13505) END FROM WidgetInst WHERE WidgetInstId = 13505) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13540;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13506) END FROM WidgetInst WHERE WidgetInstId = 13506) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13541;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13500) END FROM WidgetInst WHERE WidgetInstId = 13500) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13556;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13501) END FROM WidgetInst WHERE WidgetInstId = 13501) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13557;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13502) END FROM WidgetInst WHERE WidgetInstId = 13502) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13558;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13503) END FROM WidgetInst WHERE WidgetInstId = 13503) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13559;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13504) END FROM WidgetInst WHERE WidgetInstId = 13504) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13560;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13505) END FROM WidgetInst WHERE WidgetInstId = 13505) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13561;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13506) END FROM WidgetInst WHERE WidgetInstId = 13506) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13562;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13500) END FROM WidgetInst WHERE WidgetInstId = 13500) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13563;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13501) END FROM WidgetInst WHERE WidgetInstId = 13501) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13564;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13502) END FROM WidgetInst WHERE WidgetInstId = 13502) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13565;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13503) END FROM WidgetInst WHERE WidgetInstId = 13503) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13566;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13504) END FROM WidgetInst WHERE WidgetInstId = 13504) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13567;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13505) END FROM WidgetInst WHERE WidgetInstId = 13505) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13568;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13506) END FROM WidgetInst WHERE WidgetInstId = 13506) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13569;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13199) END FROM WidgetInst WHERE WidgetInstId = 13199) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13486) END FROM WidgetInst WHERE WidgetInstId = 13486)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13570;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13200) END FROM WidgetInst WHERE WidgetInstId = 13200) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13487) END FROM WidgetInst WHERE WidgetInstId = 13487)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13571;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13201) END FROM WidgetInst WHERE WidgetInstId = 13201) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13488) END FROM WidgetInst WHERE WidgetInstId = 13488)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13572;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13202) END FROM WidgetInst WHERE WidgetInstId = 13202) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13489) END FROM WidgetInst WHERE WidgetInstId = 13489)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13573;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13203) END FROM WidgetInst WHERE WidgetInstId = 13203) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13490) END FROM WidgetInst WHERE WidgetInstId = 13490)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13574;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13204) END FROM WidgetInst WHERE WidgetInstId = 13204) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13491) END FROM WidgetInst WHERE WidgetInstId = 13491)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13575;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13205) END FROM WidgetInst WHERE WidgetInstId = 13205) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13492) END FROM WidgetInst WHERE WidgetInstId = 13492)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13576;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13500) END FROM WidgetInst WHERE WidgetInstId = 13500) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13591;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13501) END FROM WidgetInst WHERE WidgetInstId = 13501) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13592;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13502) END FROM WidgetInst WHERE WidgetInstId = 13502) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13593;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13503) END FROM WidgetInst WHERE WidgetInstId = 13503) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13594;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13504) END FROM WidgetInst WHERE WidgetInstId = 13504) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13595;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13505) END FROM WidgetInst WHERE WidgetInstId = 13505) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13596;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13506) END FROM WidgetInst WHERE WidgetInstId = 13506) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13597;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13500) END FROM WidgetInst WHERE WidgetInstId = 13500) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13598;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13501) END FROM WidgetInst WHERE WidgetInstId = 13501) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13599;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13502) END FROM WidgetInst WHERE WidgetInstId = 13502) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13600;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13503) END FROM WidgetInst WHERE WidgetInstId = 13503) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13601;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13504) END FROM WidgetInst WHERE WidgetInstId = 13504) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13602;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13505) END FROM WidgetInst WHERE WidgetInstId = 13505) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13603;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13506) END FROM WidgetInst WHERE WidgetInstId = 13506) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13604;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13612) END FROM WidgetInst WHERE WidgetInstId = 13612) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13619;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13613) END FROM WidgetInst WHERE WidgetInstId = 13613) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13620;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13614) END FROM WidgetInst WHERE WidgetInstId = 13614) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13621;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13615) END FROM WidgetInst WHERE WidgetInstId = 13615) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13622;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13616) END FROM WidgetInst WHERE WidgetInstId = 13616) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13623;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13617) END FROM WidgetInst WHERE WidgetInstId = 13617) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13624;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13618) END FROM WidgetInst WHERE WidgetInstId = 13618) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13625;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13500) END FROM WidgetInst WHERE WidgetInstId = 13500) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13633;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13501) END FROM WidgetInst WHERE WidgetInstId = 13501) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13634;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13502) END FROM WidgetInst WHERE WidgetInstId = 13502) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13635;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13503) END FROM WidgetInst WHERE WidgetInstId = 13503) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13636;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13504) END FROM WidgetInst WHERE WidgetInstId = 13504) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13637;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13505) END FROM WidgetInst WHERE WidgetInstId = 13505) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13638;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13506) END FROM WidgetInst WHERE WidgetInstId = 13506) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13639;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13500) END FROM WidgetInst WHERE WidgetInstId = 13500) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13640;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13501) END FROM WidgetInst WHERE WidgetInstId = 13501) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13641;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13502) END FROM WidgetInst WHERE WidgetInstId = 13502) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13642;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13503) END FROM WidgetInst WHERE WidgetInstId = 13503) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13643;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13504) END FROM WidgetInst WHERE WidgetInstId = 13504) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13644;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13505) END FROM WidgetInst WHERE WidgetInstId = 13505) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13645;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13506) END FROM WidgetInst WHERE WidgetInstId = 13506) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13646;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13612) END FROM WidgetInst WHERE WidgetInstId = 13612) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13647;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13613) END FROM WidgetInst WHERE WidgetInstId = 13613) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13648;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13614) END FROM WidgetInst WHERE WidgetInstId = 13614) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13649;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13615) END FROM WidgetInst WHERE WidgetInstId = 13615) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13650;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13616) END FROM WidgetInst WHERE WidgetInstId = 13616) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13651;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13617) END FROM WidgetInst WHERE WidgetInstId = 13617) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13652;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13618) END FROM WidgetInst WHERE WidgetInstId = 13618) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13653;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13500) END FROM WidgetInst WHERE WidgetInstId = 13500) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13661;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13501) END FROM WidgetInst WHERE WidgetInstId = 13501) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13662;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13502) END FROM WidgetInst WHERE WidgetInstId = 13502) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13663;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13503) END FROM WidgetInst WHERE WidgetInstId = 13503) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13664;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13504) END FROM WidgetInst WHERE WidgetInstId = 13504) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13665;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13505) END FROM WidgetInst WHERE WidgetInstId = 13505) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13666;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13506) END FROM WidgetInst WHERE WidgetInstId = 13506) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13667;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13500) END FROM WidgetInst WHERE WidgetInstId = 13500) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13668;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13501) END FROM WidgetInst WHERE WidgetInstId = 13501) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13669;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13502) END FROM WidgetInst WHERE WidgetInstId = 13502) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13670;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13503) END FROM WidgetInst WHERE WidgetInstId = 13503) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13671;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13504) END FROM WidgetInst WHERE WidgetInstId = 13504) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13672;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13505) END FROM WidgetInst WHERE WidgetInstId = 13505) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13673;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13506) END FROM WidgetInst WHERE WidgetInstId = 13506) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13674;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13199) END FROM WidgetInst WHERE WidgetInstId = 13199) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13675;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13200) END FROM WidgetInst WHERE WidgetInstId = 13200) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13676;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13201) END FROM WidgetInst WHERE WidgetInstId = 13201) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13677;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13202) END FROM WidgetInst WHERE WidgetInstId = 13202) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13678;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13203) END FROM WidgetInst WHERE WidgetInstId = 13203) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13679;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13204) END FROM WidgetInst WHERE WidgetInstId = 13204) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13680;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13205) END FROM WidgetInst WHERE WidgetInstId = 13205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13681;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 13199) END FROM WidgetInst WHERE WidgetInstId = 13199) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13696;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 13200) END FROM WidgetInst WHERE WidgetInstId = 13200) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13697;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 13201) END FROM WidgetInst WHERE WidgetInstId = 13201) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13698;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 13202) END FROM WidgetInst WHERE WidgetInstId = 13202) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13699;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 13203) END FROM WidgetInst WHERE WidgetInstId = 13203) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13700;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 13204) END FROM WidgetInst WHERE WidgetInstId = 13204) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13701;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 13205) END FROM WidgetInst WHERE WidgetInstId = 13205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13702;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13927) END FROM WidgetInst WHERE WidgetInstId = 13927) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13934;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13928) END FROM WidgetInst WHERE WidgetInstId = 13928) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13935;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13929) END FROM WidgetInst WHERE WidgetInstId = 13929) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13936;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13930) END FROM WidgetInst WHERE WidgetInstId = 13930) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13937;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13931) END FROM WidgetInst WHERE WidgetInstId = 13931) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13938;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13932) END FROM WidgetInst WHERE WidgetInstId = 13932) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13939;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13933) END FROM WidgetInst WHERE WidgetInstId = 13933) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13940;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13927) END FROM WidgetInst WHERE WidgetInstId = 13927) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13948;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13928) END FROM WidgetInst WHERE WidgetInstId = 13928) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13949;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13929) END FROM WidgetInst WHERE WidgetInstId = 13929) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13950;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13930) END FROM WidgetInst WHERE WidgetInstId = 13930) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13951;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13931) END FROM WidgetInst WHERE WidgetInstId = 13931) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13952;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13932) END FROM WidgetInst WHERE WidgetInstId = 13932) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13953;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13933) END FROM WidgetInst WHERE WidgetInstId = 13933) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13954;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13927) END FROM WidgetInst WHERE WidgetInstId = 13927) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13962;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13928) END FROM WidgetInst WHERE WidgetInstId = 13928) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13963;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13929) END FROM WidgetInst WHERE WidgetInstId = 13929) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13964;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13930) END FROM WidgetInst WHERE WidgetInstId = 13930) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13965;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13931) END FROM WidgetInst WHERE WidgetInstId = 13931) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13966;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13932) END FROM WidgetInst WHERE WidgetInstId = 13932) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13967;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13933) END FROM WidgetInst WHERE WidgetInstId = 13933) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13968;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 13199) END FROM WidgetInst WHERE WidgetInstId = 13199) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13976;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 13200) END FROM WidgetInst WHERE WidgetInstId = 13200) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13977;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 13201) END FROM WidgetInst WHERE WidgetInstId = 13201) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13978;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 13202) END FROM WidgetInst WHERE WidgetInstId = 13202) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13979;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 13203) END FROM WidgetInst WHERE WidgetInstId = 13203) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13980;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 13204) END FROM WidgetInst WHERE WidgetInstId = 13204) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13981;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 13205) END FROM WidgetInst WHERE WidgetInstId = 13205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13982;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14039) END FROM WidgetInst WHERE WidgetInstId = 14039) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14046;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14040) END FROM WidgetInst WHERE WidgetInstId = 14040) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14047;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14041) END FROM WidgetInst WHERE WidgetInstId = 14041) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14048;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14042) END FROM WidgetInst WHERE WidgetInstId = 14042) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14049;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14043) END FROM WidgetInst WHERE WidgetInstId = 14043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14050;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14044) END FROM WidgetInst WHERE WidgetInstId = 14044) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14051;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14045) END FROM WidgetInst WHERE WidgetInstId = 14045) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14052;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14039) END FROM WidgetInst WHERE WidgetInstId = 14039) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14060;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14040) END FROM WidgetInst WHERE WidgetInstId = 14040) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14061;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14041) END FROM WidgetInst WHERE WidgetInstId = 14041) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14062;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14042) END FROM WidgetInst WHERE WidgetInstId = 14042) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14063;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14043) END FROM WidgetInst WHERE WidgetInstId = 14043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14064;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14044) END FROM WidgetInst WHERE WidgetInstId = 14044) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14065;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14045) END FROM WidgetInst WHERE WidgetInstId = 14045) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14066;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14039) END FROM WidgetInst WHERE WidgetInstId = 14039) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14074;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14040) END FROM WidgetInst WHERE WidgetInstId = 14040) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14075;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14041) END FROM WidgetInst WHERE WidgetInstId = 14041) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14076;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14042) END FROM WidgetInst WHERE WidgetInstId = 14042) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14077;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14043) END FROM WidgetInst WHERE WidgetInstId = 14043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14078;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14044) END FROM WidgetInst WHERE WidgetInstId = 14044) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14079;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14045) END FROM WidgetInst WHERE WidgetInstId = 14045) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14080;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 13199) END FROM WidgetInst WHERE WidgetInstId = 13199) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14088;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 13200) END FROM WidgetInst WHERE WidgetInstId = 13200) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14089;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 13201) END FROM WidgetInst WHERE WidgetInstId = 13201) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14090;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 13202) END FROM WidgetInst WHERE WidgetInstId = 13202) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14091;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 13203) END FROM WidgetInst WHERE WidgetInstId = 13203) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14092;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 13204) END FROM WidgetInst WHERE WidgetInstId = 13204) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14093;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 13205) END FROM WidgetInst WHERE WidgetInstId = 13205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14094;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14179) END FROM WidgetInst WHERE WidgetInstId = 14179) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14186;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14180) END FROM WidgetInst WHERE WidgetInstId = 14180) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14187;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14181) END FROM WidgetInst WHERE WidgetInstId = 14181) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14188;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14182) END FROM WidgetInst WHERE WidgetInstId = 14182) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14189;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14183) END FROM WidgetInst WHERE WidgetInstId = 14183) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14190;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14184) END FROM WidgetInst WHERE WidgetInstId = 14184) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14191;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14185) END FROM WidgetInst WHERE WidgetInstId = 14185) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14192;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14179) END FROM WidgetInst WHERE WidgetInstId = 14179) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14200;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14180) END FROM WidgetInst WHERE WidgetInstId = 14180) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14201;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14181) END FROM WidgetInst WHERE WidgetInstId = 14181) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14202;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14182) END FROM WidgetInst WHERE WidgetInstId = 14182) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14203;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14183) END FROM WidgetInst WHERE WidgetInstId = 14183) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14204;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14184) END FROM WidgetInst WHERE WidgetInstId = 14184) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14205;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14185) END FROM WidgetInst WHERE WidgetInstId = 14185) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14206;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14179) END FROM WidgetInst WHERE WidgetInstId = 14179) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14214;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14180) END FROM WidgetInst WHERE WidgetInstId = 14180) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14215;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14181) END FROM WidgetInst WHERE WidgetInstId = 14181) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14216;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14182) END FROM WidgetInst WHERE WidgetInstId = 14182) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14217;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14183) END FROM WidgetInst WHERE WidgetInstId = 14183) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14218;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14184) END FROM WidgetInst WHERE WidgetInstId = 14184) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14219;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14185) END FROM WidgetInst WHERE WidgetInstId = 14185) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14220;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 13199) END FROM WidgetInst WHERE WidgetInstId = 13199) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14228;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 13200) END FROM WidgetInst WHERE WidgetInstId = 13200) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14229;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 13201) END FROM WidgetInst WHERE WidgetInstId = 13201) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14230;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 13202) END FROM WidgetInst WHERE WidgetInstId = 13202) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14231;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 13203) END FROM WidgetInst WHERE WidgetInstId = 13203) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14232;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 13204) END FROM WidgetInst WHERE WidgetInstId = 13204) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14233;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 13205) END FROM WidgetInst WHERE WidgetInstId = 13205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14234;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14319) END FROM WidgetInst WHERE WidgetInstId = 14319) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14326;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14320) END FROM WidgetInst WHERE WidgetInstId = 14320) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14327;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14321) END FROM WidgetInst WHERE WidgetInstId = 14321) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14328;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14322) END FROM WidgetInst WHERE WidgetInstId = 14322) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14329;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14323) END FROM WidgetInst WHERE WidgetInstId = 14323) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14330;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14324) END FROM WidgetInst WHERE WidgetInstId = 14324) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14331;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14325) END FROM WidgetInst WHERE WidgetInstId = 14325) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14332;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14319) END FROM WidgetInst WHERE WidgetInstId = 14319) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14340;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14320) END FROM WidgetInst WHERE WidgetInstId = 14320) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14341;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14321) END FROM WidgetInst WHERE WidgetInstId = 14321) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14342;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14322) END FROM WidgetInst WHERE WidgetInstId = 14322) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14343;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14323) END FROM WidgetInst WHERE WidgetInstId = 14323) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14344;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14324) END FROM WidgetInst WHERE WidgetInstId = 14324) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14345;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14325) END FROM WidgetInst WHERE WidgetInstId = 14325) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14346;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14319) END FROM WidgetInst WHERE WidgetInstId = 14319) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14354;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14320) END FROM WidgetInst WHERE WidgetInstId = 14320) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14355;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14321) END FROM WidgetInst WHERE WidgetInstId = 14321) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14356;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14322) END FROM WidgetInst WHERE WidgetInstId = 14322) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14357;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14323) END FROM WidgetInst WHERE WidgetInstId = 14323) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14358;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14324) END FROM WidgetInst WHERE WidgetInstId = 14324) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14359;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14325) END FROM WidgetInst WHERE WidgetInstId = 14325) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14360;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14361) END FROM WidgetInst WHERE WidgetInstId = 14361) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14319) END FROM WidgetInst WHERE WidgetInstId = 14319)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14368;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14362) END FROM WidgetInst WHERE WidgetInstId = 14362) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14320) END FROM WidgetInst WHERE WidgetInstId = 14320)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14369;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14363) END FROM WidgetInst WHERE WidgetInstId = 14363) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14321) END FROM WidgetInst WHERE WidgetInstId = 14321)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14370;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14364) END FROM WidgetInst WHERE WidgetInstId = 14364) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14322) END FROM WidgetInst WHERE WidgetInstId = 14322)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14371;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14365) END FROM WidgetInst WHERE WidgetInstId = 14365) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14323) END FROM WidgetInst WHERE WidgetInstId = 14323)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14372;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14366) END FROM WidgetInst WHERE WidgetInstId = 14366) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14324) END FROM WidgetInst WHERE WidgetInstId = 14324)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14373;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14367) END FROM WidgetInst WHERE WidgetInstId = 14367) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14325) END FROM WidgetInst WHERE WidgetInstId = 14325)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14374;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14361) END FROM WidgetInst WHERE WidgetInstId = 14361) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14319) END FROM WidgetInst WHERE WidgetInstId = 14319)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14382;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14362) END FROM WidgetInst WHERE WidgetInstId = 14362) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14320) END FROM WidgetInst WHERE WidgetInstId = 14320)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14383;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14363) END FROM WidgetInst WHERE WidgetInstId = 14363) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14321) END FROM WidgetInst WHERE WidgetInstId = 14321)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14384;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14364) END FROM WidgetInst WHERE WidgetInstId = 14364) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14322) END FROM WidgetInst WHERE WidgetInstId = 14322)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14385;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14365) END FROM WidgetInst WHERE WidgetInstId = 14365) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14323) END FROM WidgetInst WHERE WidgetInstId = 14323)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14386;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14366) END FROM WidgetInst WHERE WidgetInstId = 14366) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14324) END FROM WidgetInst WHERE WidgetInstId = 14324)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14387;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14367) END FROM WidgetInst WHERE WidgetInstId = 14367) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14325) END FROM WidgetInst WHERE WidgetInstId = 14325)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14388;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14361) END FROM WidgetInst WHERE WidgetInstId = 14361) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14319) END FROM WidgetInst WHERE WidgetInstId = 14319)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14396;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14362) END FROM WidgetInst WHERE WidgetInstId = 14362) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14320) END FROM WidgetInst WHERE WidgetInstId = 14320)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14397;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14363) END FROM WidgetInst WHERE WidgetInstId = 14363) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14321) END FROM WidgetInst WHERE WidgetInstId = 14321)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14398;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14364) END FROM WidgetInst WHERE WidgetInstId = 14364) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14322) END FROM WidgetInst WHERE WidgetInstId = 14322)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14399;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14365) END FROM WidgetInst WHERE WidgetInstId = 14365) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14323) END FROM WidgetInst WHERE WidgetInstId = 14323)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14400;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14366) END FROM WidgetInst WHERE WidgetInstId = 14366) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14324) END FROM WidgetInst WHERE WidgetInstId = 14324)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14401;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14367) END FROM WidgetInst WHERE WidgetInstId = 14367) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14325) END FROM WidgetInst WHERE WidgetInstId = 14325)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14402;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 13199) END FROM WidgetInst WHERE WidgetInstId = 13199) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14410;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 13200) END FROM WidgetInst WHERE WidgetInstId = 13200) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14411;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 13201) END FROM WidgetInst WHERE WidgetInstId = 13201) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14412;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 13202) END FROM WidgetInst WHERE WidgetInstId = 13202) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14413;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 13203) END FROM WidgetInst WHERE WidgetInstId = 13203) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14414;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 13204) END FROM WidgetInst WHERE WidgetInstId = 13204) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14415;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 13205) END FROM WidgetInst WHERE WidgetInstId = 13205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14416;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14424) END FROM WidgetInst WHERE WidgetInstId = 14424) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14431;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14425) END FROM WidgetInst WHERE WidgetInstId = 14425) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14432;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14426) END FROM WidgetInst WHERE WidgetInstId = 14426) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14433;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14427) END FROM WidgetInst WHERE WidgetInstId = 14427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14434;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14428) END FROM WidgetInst WHERE WidgetInstId = 14428) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14435;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14429) END FROM WidgetInst WHERE WidgetInstId = 14429) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14436;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14430) END FROM WidgetInst WHERE WidgetInstId = 14430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14437;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14424) END FROM WidgetInst WHERE WidgetInstId = 14424) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14452;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14425) END FROM WidgetInst WHERE WidgetInstId = 14425) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14453;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14426) END FROM WidgetInst WHERE WidgetInstId = 14426) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14454;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14427) END FROM WidgetInst WHERE WidgetInstId = 14427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14455;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14428) END FROM WidgetInst WHERE WidgetInstId = 14428) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14456;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14429) END FROM WidgetInst WHERE WidgetInstId = 14429) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14457;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14430) END FROM WidgetInst WHERE WidgetInstId = 14430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14458;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14424) END FROM WidgetInst WHERE WidgetInstId = 14424) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14473;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14425) END FROM WidgetInst WHERE WidgetInstId = 14425) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14474;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14426) END FROM WidgetInst WHERE WidgetInstId = 14426) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14475;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14427) END FROM WidgetInst WHERE WidgetInstId = 14427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14476;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14428) END FROM WidgetInst WHERE WidgetInstId = 14428) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14477;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14429) END FROM WidgetInst WHERE WidgetInstId = 14429) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14478;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14430) END FROM WidgetInst WHERE WidgetInstId = 14430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14479;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14424) END FROM WidgetInst WHERE WidgetInstId = 14424) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14550;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14425) END FROM WidgetInst WHERE WidgetInstId = 14425) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14551;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14426) END FROM WidgetInst WHERE WidgetInstId = 14426) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14552;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14427) END FROM WidgetInst WHERE WidgetInstId = 14427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14553;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14428) END FROM WidgetInst WHERE WidgetInstId = 14428) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14554;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14429) END FROM WidgetInst WHERE WidgetInstId = 14429) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14555;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14430) END FROM WidgetInst WHERE WidgetInstId = 14430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14556;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 13199) END FROM WidgetInst WHERE WidgetInstId = 13199) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14571;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 13200) END FROM WidgetInst WHERE WidgetInstId = 13200) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14572;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 13201) END FROM WidgetInst WHERE WidgetInstId = 13201) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14573;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 13202) END FROM WidgetInst WHERE WidgetInstId = 13202) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14574;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 13203) END FROM WidgetInst WHERE WidgetInstId = 13203) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14575;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 13204) END FROM WidgetInst WHERE WidgetInstId = 13204) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14576;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 13205) END FROM WidgetInst WHERE WidgetInstId = 13205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14577;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14592) END FROM WidgetInst WHERE WidgetInstId = 14592) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14599;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14593) END FROM WidgetInst WHERE WidgetInstId = 14593) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14600;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14594) END FROM WidgetInst WHERE WidgetInstId = 14594) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14601;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14595) END FROM WidgetInst WHERE WidgetInstId = 14595) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14602;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14596) END FROM WidgetInst WHERE WidgetInstId = 14596) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14603;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14597) END FROM WidgetInst WHERE WidgetInstId = 14597) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14604;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14598) END FROM WidgetInst WHERE WidgetInstId = 14598) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14605;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14592) END FROM WidgetInst WHERE WidgetInstId = 14592) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14620;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14593) END FROM WidgetInst WHERE WidgetInstId = 14593) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14621;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14594) END FROM WidgetInst WHERE WidgetInstId = 14594) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14622;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14595) END FROM WidgetInst WHERE WidgetInstId = 14595) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14623;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14596) END FROM WidgetInst WHERE WidgetInstId = 14596) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14624;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14597) END FROM WidgetInst WHERE WidgetInstId = 14597) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14625;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14598) END FROM WidgetInst WHERE WidgetInstId = 14598) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14626;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14592) END FROM WidgetInst WHERE WidgetInstId = 14592) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14641;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14593) END FROM WidgetInst WHERE WidgetInstId = 14593) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14642;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14594) END FROM WidgetInst WHERE WidgetInstId = 14594) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14643;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14595) END FROM WidgetInst WHERE WidgetInstId = 14595) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14644;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14596) END FROM WidgetInst WHERE WidgetInstId = 14596) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14645;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14597) END FROM WidgetInst WHERE WidgetInstId = 14597) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14646;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14598) END FROM WidgetInst WHERE WidgetInstId = 14598) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14647;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14592) END FROM WidgetInst WHERE WidgetInstId = 14592) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14718;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14593) END FROM WidgetInst WHERE WidgetInstId = 14593) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14719;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14594) END FROM WidgetInst WHERE WidgetInstId = 14594) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14720;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14595) END FROM WidgetInst WHERE WidgetInstId = 14595) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14721;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14596) END FROM WidgetInst WHERE WidgetInstId = 14596) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14722;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14597) END FROM WidgetInst WHERE WidgetInstId = 14597) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14723;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14598) END FROM WidgetInst WHERE WidgetInstId = 14598) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14724;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 14746) END FROM WidgetInst WHERE WidgetInstId = 14746) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14753;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 14747) END FROM WidgetInst WHERE WidgetInstId = 14747) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14754;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 14748) END FROM WidgetInst WHERE WidgetInstId = 14748) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14755;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 14749) END FROM WidgetInst WHERE WidgetInstId = 14749) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14756;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 14750) END FROM WidgetInst WHERE WidgetInstId = 14750) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14757;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 14751) END FROM WidgetInst WHERE WidgetInstId = 14751) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14758;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 14752) END FROM WidgetInst WHERE WidgetInstId = 14752) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14759;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14746) END FROM WidgetInst WHERE WidgetInstId = 14746) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14767;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14747) END FROM WidgetInst WHERE WidgetInstId = 14747) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14768;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14748) END FROM WidgetInst WHERE WidgetInstId = 14748) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14769;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14749) END FROM WidgetInst WHERE WidgetInstId = 14749) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14770;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14750) END FROM WidgetInst WHERE WidgetInstId = 14750) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14771;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14751) END FROM WidgetInst WHERE WidgetInstId = 14751) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14772;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14752) END FROM WidgetInst WHERE WidgetInstId = 14752) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14773;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14746) END FROM WidgetInst WHERE WidgetInstId = 14746) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14781;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14747) END FROM WidgetInst WHERE WidgetInstId = 14747) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14782;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14748) END FROM WidgetInst WHERE WidgetInstId = 14748) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14783;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14749) END FROM WidgetInst WHERE WidgetInstId = 14749) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14784;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14750) END FROM WidgetInst WHERE WidgetInstId = 14750) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14785;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14751) END FROM WidgetInst WHERE WidgetInstId = 14751) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14786;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14752) END FROM WidgetInst WHERE WidgetInstId = 14752) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14787;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14746) END FROM WidgetInst WHERE WidgetInstId = 14746) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14795;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14747) END FROM WidgetInst WHERE WidgetInstId = 14747) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14796;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14748) END FROM WidgetInst WHERE WidgetInstId = 14748) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14797;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14749) END FROM WidgetInst WHERE WidgetInstId = 14749) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14798;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14750) END FROM WidgetInst WHERE WidgetInstId = 14750) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14799;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14751) END FROM WidgetInst WHERE WidgetInstId = 14751) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14800;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14752) END FROM WidgetInst WHERE WidgetInstId = 14752) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14801;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14746) END FROM WidgetInst WHERE WidgetInstId = 14746) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14809;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14747) END FROM WidgetInst WHERE WidgetInstId = 14747) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14810;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14748) END FROM WidgetInst WHERE WidgetInstId = 14748) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14811;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14749) END FROM WidgetInst WHERE WidgetInstId = 14749) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14812;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14750) END FROM WidgetInst WHERE WidgetInstId = 14750) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14813;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14751) END FROM WidgetInst WHERE WidgetInstId = 14751) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14814;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14752) END FROM WidgetInst WHERE WidgetInstId = 14752) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14815;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14746) END FROM WidgetInst WHERE WidgetInstId = 14746) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14823;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14747) END FROM WidgetInst WHERE WidgetInstId = 14747) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14824;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14748) END FROM WidgetInst WHERE WidgetInstId = 14748) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14825;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14749) END FROM WidgetInst WHERE WidgetInstId = 14749) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14826;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14750) END FROM WidgetInst WHERE WidgetInstId = 14750) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14827;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14751) END FROM WidgetInst WHERE WidgetInstId = 14751) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14828;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14752) END FROM WidgetInst WHERE WidgetInstId = 14752) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14829;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13199) END FROM WidgetInst WHERE WidgetInstId = 13199) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12804) END FROM WidgetInst WHERE WidgetInstId = 12804)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14837;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13200) END FROM WidgetInst WHERE WidgetInstId = 13200) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12804) END FROM WidgetInst WHERE WidgetInstId = 12804)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14838;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13201) END FROM WidgetInst WHERE WidgetInstId = 13201) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12804) END FROM WidgetInst WHERE WidgetInstId = 12804)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14839;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13202) END FROM WidgetInst WHERE WidgetInstId = 13202) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12804) END FROM WidgetInst WHERE WidgetInstId = 12804)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14840;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13203) END FROM WidgetInst WHERE WidgetInstId = 13203) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12804) END FROM WidgetInst WHERE WidgetInstId = 12804)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14841;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13204) END FROM WidgetInst WHERE WidgetInstId = 13204) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12804) END FROM WidgetInst WHERE WidgetInstId = 12804)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14842;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13205) END FROM WidgetInst WHERE WidgetInstId = 13205) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12804) END FROM WidgetInst WHERE WidgetInstId = 12804)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14843;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 14851) END FROM WidgetInst WHERE WidgetInstId = 14851) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14858;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 14852) END FROM WidgetInst WHERE WidgetInstId = 14852) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14859;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 14853) END FROM WidgetInst WHERE WidgetInstId = 14853) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14860;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 14854) END FROM WidgetInst WHERE WidgetInstId = 14854) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14861;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 14855) END FROM WidgetInst WHERE WidgetInstId = 14855) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14862;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 14856) END FROM WidgetInst WHERE WidgetInstId = 14856) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14863;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 14857) END FROM WidgetInst WHERE WidgetInstId = 14857) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14864;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 14876;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 14876;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 14876;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 14876;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 14876;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 14876;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 14877;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 14877;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 14877;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 14877;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 14877;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 14877;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 14876) END FROM WidgetInst WHERE WidgetInstId = 14876) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14878;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 14877) END FROM WidgetInst WHERE WidgetInstId = 14877) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14879;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 14882) END FROM WidgetInst WHERE WidgetInstId = 14882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14884;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 14883) END FROM WidgetInst WHERE WidgetInstId = 14883) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14885;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 14876) END FROM WidgetInst WHERE WidgetInstId = 14876) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14888;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 14877) END FROM WidgetInst WHERE WidgetInstId = 14877) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14889;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 12801) END FROM WidgetInst WHERE WidgetInstId = 12801) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14900;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 12801) END FROM WidgetInst WHERE WidgetInstId = 12801) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14901;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 12801) END FROM WidgetInst WHERE WidgetInstId = 12801) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14906;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 12801) END FROM WidgetInst WHERE WidgetInstId = 12801) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14907;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 14876) END FROM WidgetInst WHERE WidgetInstId = 14876) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14912;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 14877) END FROM WidgetInst WHERE WidgetInstId = 14877) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14913;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14916) END FROM WidgetInst WHERE WidgetInstId = 14916) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14918;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14917) END FROM WidgetInst WHERE WidgetInstId = 14917) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14919;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14916) END FROM WidgetInst WHERE WidgetInstId = 14916) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14924;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14917) END FROM WidgetInst WHERE WidgetInstId = 14917) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14925;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 14876) END FROM WidgetInst WHERE WidgetInstId = 14876) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14930;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 14877) END FROM WidgetInst WHERE WidgetInstId = 14877) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14931;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14934) END FROM WidgetInst WHERE WidgetInstId = 14934) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14936;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14935) END FROM WidgetInst WHERE WidgetInstId = 14935) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14937;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14934) END FROM WidgetInst WHERE WidgetInstId = 14934) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14942;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14935) END FROM WidgetInst WHERE WidgetInstId = 14935) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14943;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 14934) END FROM WidgetInst WHERE WidgetInstId = 14934) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14948;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 14935) END FROM WidgetInst WHERE WidgetInstId = 14935) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14949;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 14876) END FROM WidgetInst WHERE WidgetInstId = 14876) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14954;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 14877) END FROM WidgetInst WHERE WidgetInstId = 14877) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14955;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 14876) END FROM WidgetInst WHERE WidgetInstId = 14876) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14958) END FROM WidgetInst WHERE WidgetInstId = 14958)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14964;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 14877) END FROM WidgetInst WHERE WidgetInstId = 14877) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14959) END FROM WidgetInst WHERE WidgetInstId = 14959)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14965;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14962) END FROM WidgetInst WHERE WidgetInstId = 14962) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14970;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14963) END FROM WidgetInst WHERE WidgetInstId = 14963) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14971;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14962) END FROM WidgetInst WHERE WidgetInstId = 14962) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14972;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14963) END FROM WidgetInst WHERE WidgetInstId = 14963) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14973;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14962) END FROM WidgetInst WHERE WidgetInstId = 14962) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14978;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14963) END FROM WidgetInst WHERE WidgetInstId = 14963) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14979;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14962) END FROM WidgetInst WHERE WidgetInstId = 14962) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14980;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14963) END FROM WidgetInst WHERE WidgetInstId = 14963) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14981;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 14876) END FROM WidgetInst WHERE WidgetInstId = 14876) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14958) END FROM WidgetInst WHERE WidgetInstId = 14958)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14982;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 14877) END FROM WidgetInst WHERE WidgetInstId = 14877) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14959) END FROM WidgetInst WHERE WidgetInstId = 14959)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14983;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14962) END FROM WidgetInst WHERE WidgetInstId = 14962) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14988;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14963) END FROM WidgetInst WHERE WidgetInstId = 14963) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14989;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14962) END FROM WidgetInst WHERE WidgetInstId = 14962) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14990;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14963) END FROM WidgetInst WHERE WidgetInstId = 14963) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14991;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14994) END FROM WidgetInst WHERE WidgetInstId = 14994) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14996;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14995) END FROM WidgetInst WHERE WidgetInstId = 14995) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14997;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14962) END FROM WidgetInst WHERE WidgetInstId = 14962) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15000;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14963) END FROM WidgetInst WHERE WidgetInstId = 14963) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15001;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14962) END FROM WidgetInst WHERE WidgetInstId = 14962) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15002;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14963) END FROM WidgetInst WHERE WidgetInstId = 14963) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15003;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 14994) END FROM WidgetInst WHERE WidgetInstId = 14994) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15004;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 14995) END FROM WidgetInst WHERE WidgetInstId = 14995) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15005;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14962) END FROM WidgetInst WHERE WidgetInstId = 14962) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15008;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14963) END FROM WidgetInst WHERE WidgetInstId = 14963) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15009;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14962) END FROM WidgetInst WHERE WidgetInstId = 14962) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15010;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14963) END FROM WidgetInst WHERE WidgetInstId = 14963) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15011;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 14876) END FROM WidgetInst WHERE WidgetInstId = 14876) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15012;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 14877) END FROM WidgetInst WHERE WidgetInstId = 14877) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15013;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 14876) END FROM WidgetInst WHERE WidgetInstId = 14876) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15018;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 14877) END FROM WidgetInst WHERE WidgetInstId = 14877) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15019;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15084) END FROM WidgetInst WHERE WidgetInstId = 15084) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15086;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15085) END FROM WidgetInst WHERE WidgetInstId = 15085) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15087;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15084) END FROM WidgetInst WHERE WidgetInstId = 15084) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15090;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15085) END FROM WidgetInst WHERE WidgetInstId = 15085) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15091;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15084) END FROM WidgetInst WHERE WidgetInstId = 15084) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15094;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15085) END FROM WidgetInst WHERE WidgetInstId = 15085) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15095;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14876) END FROM WidgetInst WHERE WidgetInstId = 14876) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15098;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14877) END FROM WidgetInst WHERE WidgetInstId = 14877) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15099;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15116) END FROM WidgetInst WHERE WidgetInstId = 15116) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15118;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15117) END FROM WidgetInst WHERE WidgetInstId = 15117) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15119;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15116) END FROM WidgetInst WHERE WidgetInstId = 15116) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15122;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15117) END FROM WidgetInst WHERE WidgetInstId = 15117) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15123;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15116) END FROM WidgetInst WHERE WidgetInstId = 15116) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15126;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15117) END FROM WidgetInst WHERE WidgetInstId = 15117) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15127;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 14876) END FROM WidgetInst WHERE WidgetInstId = 14876) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15130;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 14877) END FROM WidgetInst WHERE WidgetInstId = 14877) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15131;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15156) END FROM WidgetInst WHERE WidgetInstId = 15156) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15158;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15157) END FROM WidgetInst WHERE WidgetInstId = 15157) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15159;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15156) END FROM WidgetInst WHERE WidgetInstId = 15156) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15162;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15157) END FROM WidgetInst WHERE WidgetInstId = 15157) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15163;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15156) END FROM WidgetInst WHERE WidgetInstId = 15156) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15166;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15157) END FROM WidgetInst WHERE WidgetInstId = 15157) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15167;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 14876) END FROM WidgetInst WHERE WidgetInstId = 14876) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15170;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 14877) END FROM WidgetInst WHERE WidgetInstId = 14877) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15171;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15196) END FROM WidgetInst WHERE WidgetInstId = 15196) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15198;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15197) END FROM WidgetInst WHERE WidgetInstId = 15197) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15199;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15196) END FROM WidgetInst WHERE WidgetInstId = 15196) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15202;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15197) END FROM WidgetInst WHERE WidgetInstId = 15197) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15203;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15196) END FROM WidgetInst WHERE WidgetInstId = 15196) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15206;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15197) END FROM WidgetInst WHERE WidgetInstId = 15197) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15207;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15208) END FROM WidgetInst WHERE WidgetInstId = 15208) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15196) END FROM WidgetInst WHERE WidgetInstId = 15196)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15210;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15209) END FROM WidgetInst WHERE WidgetInstId = 15209) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15197) END FROM WidgetInst WHERE WidgetInstId = 15197)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15211;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15208) END FROM WidgetInst WHERE WidgetInstId = 15208) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15196) END FROM WidgetInst WHERE WidgetInstId = 15196)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15214;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15209) END FROM WidgetInst WHERE WidgetInstId = 15209) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15197) END FROM WidgetInst WHERE WidgetInstId = 15197)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15215;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15208) END FROM WidgetInst WHERE WidgetInstId = 15208) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15196) END FROM WidgetInst WHERE WidgetInstId = 15196)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15218;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15209) END FROM WidgetInst WHERE WidgetInstId = 15209) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15197) END FROM WidgetInst WHERE WidgetInstId = 15197)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15219;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 14876) END FROM WidgetInst WHERE WidgetInstId = 14876) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15222;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 14877) END FROM WidgetInst WHERE WidgetInstId = 14877) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15223;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15226) END FROM WidgetInst WHERE WidgetInstId = 15226) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15228;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15227) END FROM WidgetInst WHERE WidgetInstId = 15227) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15229;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15226) END FROM WidgetInst WHERE WidgetInstId = 15226) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15234;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15227) END FROM WidgetInst WHERE WidgetInstId = 15227) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15235;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15226) END FROM WidgetInst WHERE WidgetInstId = 15226) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15240;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15227) END FROM WidgetInst WHERE WidgetInstId = 15227) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15241;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15226) END FROM WidgetInst WHERE WidgetInstId = 15226) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15262;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15227) END FROM WidgetInst WHERE WidgetInstId = 15227) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15263;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 14876) END FROM WidgetInst WHERE WidgetInstId = 14876) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15268;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 14877) END FROM WidgetInst WHERE WidgetInstId = 14877) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15269;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15274) END FROM WidgetInst WHERE WidgetInstId = 15274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15276;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15275) END FROM WidgetInst WHERE WidgetInstId = 15275) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15277;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15274) END FROM WidgetInst WHERE WidgetInstId = 15274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15282;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15275) END FROM WidgetInst WHERE WidgetInstId = 15275) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15283;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15274) END FROM WidgetInst WHERE WidgetInstId = 15274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15288;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15275) END FROM WidgetInst WHERE WidgetInstId = 15275) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15289;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15274) END FROM WidgetInst WHERE WidgetInstId = 15274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15310;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15275) END FROM WidgetInst WHERE WidgetInstId = 15275) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15311;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 15318) END FROM WidgetInst WHERE WidgetInstId = 15318) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15320;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 15319) END FROM WidgetInst WHERE WidgetInstId = 15319) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15321;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15318) END FROM WidgetInst WHERE WidgetInstId = 15318) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15324;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15319) END FROM WidgetInst WHERE WidgetInstId = 15319) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15325;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15318) END FROM WidgetInst WHERE WidgetInstId = 15318) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15328;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15319) END FROM WidgetInst WHERE WidgetInstId = 15319) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15329;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15318) END FROM WidgetInst WHERE WidgetInstId = 15318) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15332;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15319) END FROM WidgetInst WHERE WidgetInstId = 15319) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15333;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15318) END FROM WidgetInst WHERE WidgetInstId = 15318) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15336;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15319) END FROM WidgetInst WHERE WidgetInstId = 15319) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15337;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15318) END FROM WidgetInst WHERE WidgetInstId = 15318) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15340;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15319) END FROM WidgetInst WHERE WidgetInstId = 15319) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15341;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 14876) END FROM WidgetInst WHERE WidgetInstId = 14876) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12804) END FROM WidgetInst WHERE WidgetInstId = 12804)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15344;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 14877) END FROM WidgetInst WHERE WidgetInstId = 14877) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12804) END FROM WidgetInst WHERE WidgetInstId = 12804)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15345;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 15348) END FROM WidgetInst WHERE WidgetInstId = 15348) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15350;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 15349) END FROM WidgetInst WHERE WidgetInstId = 15349) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15351;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Flow' AND WidgetInstId = 15406) END FROM WidgetInst WHERE WidgetInstId = 15406) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15407;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 15406) END FROM WidgetInst WHERE WidgetInstId = 15406) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15409;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mixed' AND WidgetInstId = 15414) END FROM WidgetInst WHERE WidgetInstId = 15414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15415;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 15414) END FROM WidgetInst WHERE WidgetInstId = 15414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15423;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 15419) END FROM WidgetInst WHERE WidgetInstId = 15419) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15425;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 15421) END FROM WidgetInst WHERE WidgetInstId = 15421) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15427;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 15414) END FROM WidgetInst WHERE WidgetInstId = 15414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15429;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 15419) END FROM WidgetInst WHERE WidgetInstId = 15419) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15431;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 15421) END FROM WidgetInst WHERE WidgetInstId = 15421) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15433;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 15414) END FROM WidgetInst WHERE WidgetInstId = 15414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15435;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 15419) END FROM WidgetInst WHERE WidgetInstId = 15419) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15437;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 15421) END FROM WidgetInst WHERE WidgetInstId = 15421) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15439;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 15414) END FROM WidgetInst WHERE WidgetInstId = 15414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15441;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 15419) END FROM WidgetInst WHERE WidgetInstId = 15419) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15443;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 15421) END FROM WidgetInst WHERE WidgetInstId = 15421) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15445;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 15414) END FROM WidgetInst WHERE WidgetInstId = 15414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15447;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 15419) END FROM WidgetInst WHERE WidgetInstId = 15419) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15449;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 15421) END FROM WidgetInst WHERE WidgetInstId = 15421) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15451;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 15414) END FROM WidgetInst WHERE WidgetInstId = 15414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15453;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 15419) END FROM WidgetInst WHERE WidgetInstId = 15419) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15455;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 15421) END FROM WidgetInst WHERE WidgetInstId = 15421) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15457;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 15414) END FROM WidgetInst WHERE WidgetInstId = 15414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15459;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 15419) END FROM WidgetInst WHERE WidgetInstId = 15419) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15461;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 15421) END FROM WidgetInst WHERE WidgetInstId = 15421) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15463;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 15414) END FROM WidgetInst WHERE WidgetInstId = 15414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15465;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 15414) END FROM WidgetInst WHERE WidgetInstId = 15414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15467;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 15414) END FROM WidgetInst WHERE WidgetInstId = 15414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15469;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Aw' AND WidgetInstId = 15414) END FROM WidgetInst WHERE WidgetInstId = 15414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15471;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rijn' AND WidgetInstId = 15414) END FROM WidgetInst WHERE WidgetInstId = 15414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15473;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Seminara' AND WidgetInstId = 15414) END FROM WidgetInst WHERE WidgetInstId = 15414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15475;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Seminara' AND WidgetInstId = 15414) END FROM WidgetInst WHERE WidgetInstId = 15414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15477;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 15414) END FROM WidgetInst WHERE WidgetInstId = 15414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15479;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 15414) END FROM WidgetInst WHERE WidgetInstId = 15414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15481;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 15414) END FROM WidgetInst WHERE WidgetInstId = 15414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15483;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 15414) END FROM WidgetInst WHERE WidgetInstId = 15414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15485;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant Length' AND WidgetInstId = 15498) END FROM WidgetInst WHERE WidgetInstId = 15498) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15499;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 15508) END FROM WidgetInst WHERE WidgetInstId = 15508) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15509;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Data File' AND WidgetInstId = 15511) END FROM WidgetInst WHERE WidgetInstId = 15511) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15512;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Data File' AND WidgetInstId = 15516) END FROM WidgetInst WHERE WidgetInstId = 15516) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15517;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Input Parameters' AND WidgetInstId = 15516) END FROM WidgetInst WHERE WidgetInstId = 15516) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15519;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 15508) END FROM WidgetInst WHERE WidgetInstId = 15508) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15534;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 15548;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 15548;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 15548;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 15548;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 15548;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 15548;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 15548) END FROM WidgetInst WHERE WidgetInstId = 15548) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15549;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 15551) END FROM WidgetInst WHERE WidgetInstId = 15551) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15552;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 15548) END FROM WidgetInst WHERE WidgetInstId = 15548) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15554;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 32) END FROM WidgetInst WHERE WidgetInstId = 32) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15560;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 32) END FROM WidgetInst WHERE WidgetInstId = 32) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15563;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 15548) END FROM WidgetInst WHERE WidgetInstId = 15548) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15566;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15568) END FROM WidgetInst WHERE WidgetInstId = 15568) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15569;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15568) END FROM WidgetInst WHERE WidgetInstId = 15568) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15572;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 15548) END FROM WidgetInst WHERE WidgetInstId = 15548) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15575;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15577) END FROM WidgetInst WHERE WidgetInstId = 15577) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15578;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15577) END FROM WidgetInst WHERE WidgetInstId = 15577) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15581;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 15577) END FROM WidgetInst WHERE WidgetInstId = 15577) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15584;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 15548) END FROM WidgetInst WHERE WidgetInstId = 15548) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15587;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 15548) END FROM WidgetInst WHERE WidgetInstId = 15548) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15589) END FROM WidgetInst WHERE WidgetInstId = 15589)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15592;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15591) END FROM WidgetInst WHERE WidgetInstId = 15591) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15595;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15591) END FROM WidgetInst WHERE WidgetInstId = 15591) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15596;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15591) END FROM WidgetInst WHERE WidgetInstId = 15591) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15599;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15591) END FROM WidgetInst WHERE WidgetInstId = 15591) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15600;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 15548) END FROM WidgetInst WHERE WidgetInstId = 15548) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15589) END FROM WidgetInst WHERE WidgetInstId = 15589)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15601;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15591) END FROM WidgetInst WHERE WidgetInstId = 15591) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15604;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15591) END FROM WidgetInst WHERE WidgetInstId = 15591) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15605;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15607) END FROM WidgetInst WHERE WidgetInstId = 15607) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15608;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15591) END FROM WidgetInst WHERE WidgetInstId = 15591) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15610;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15591) END FROM WidgetInst WHERE WidgetInstId = 15591) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15611;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 15607) END FROM WidgetInst WHERE WidgetInstId = 15607) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15612;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15591) END FROM WidgetInst WHERE WidgetInstId = 15591) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15614;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15591) END FROM WidgetInst WHERE WidgetInstId = 15591) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15615;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 15548) END FROM WidgetInst WHERE WidgetInstId = 15548) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15616;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 15548) END FROM WidgetInst WHERE WidgetInstId = 15548) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15619;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15652) END FROM WidgetInst WHERE WidgetInstId = 15652) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15653;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15652) END FROM WidgetInst WHERE WidgetInstId = 15652) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15655;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15652) END FROM WidgetInst WHERE WidgetInstId = 15652) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15657;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15548) END FROM WidgetInst WHERE WidgetInstId = 15548) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15659;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15668) END FROM WidgetInst WHERE WidgetInstId = 15668) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15669;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15668) END FROM WidgetInst WHERE WidgetInstId = 15668) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15671;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15668) END FROM WidgetInst WHERE WidgetInstId = 15668) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15673;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 15548) END FROM WidgetInst WHERE WidgetInstId = 15548) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15675;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15688) END FROM WidgetInst WHERE WidgetInstId = 15688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15689;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15688) END FROM WidgetInst WHERE WidgetInstId = 15688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15691;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15688) END FROM WidgetInst WHERE WidgetInstId = 15688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15693;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 15548) END FROM WidgetInst WHERE WidgetInstId = 15548) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15695;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15708) END FROM WidgetInst WHERE WidgetInstId = 15708) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15709;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15708) END FROM WidgetInst WHERE WidgetInstId = 15708) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15711;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15708) END FROM WidgetInst WHERE WidgetInstId = 15708) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15713;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15714) END FROM WidgetInst WHERE WidgetInstId = 15714) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15708) END FROM WidgetInst WHERE WidgetInstId = 15708)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15715;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15714) END FROM WidgetInst WHERE WidgetInstId = 15714) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15708) END FROM WidgetInst WHERE WidgetInstId = 15708)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15717;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15714) END FROM WidgetInst WHERE WidgetInstId = 15714) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15708) END FROM WidgetInst WHERE WidgetInstId = 15708)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15719;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 15548) END FROM WidgetInst WHERE WidgetInstId = 15548) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15721;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15723) END FROM WidgetInst WHERE WidgetInstId = 15723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15724;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15723) END FROM WidgetInst WHERE WidgetInstId = 15723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15727;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15723) END FROM WidgetInst WHERE WidgetInstId = 15723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15730;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15723) END FROM WidgetInst WHERE WidgetInstId = 15723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15741;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 15548) END FROM WidgetInst WHERE WidgetInstId = 15548) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15744;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15747) END FROM WidgetInst WHERE WidgetInstId = 15747) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15748;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15747) END FROM WidgetInst WHERE WidgetInstId = 15747) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15751;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15747) END FROM WidgetInst WHERE WidgetInstId = 15747) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15754;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15747) END FROM WidgetInst WHERE WidgetInstId = 15747) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15765;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 15769) END FROM WidgetInst WHERE WidgetInstId = 15769) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15770;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15769) END FROM WidgetInst WHERE WidgetInstId = 15769) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15772;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15769) END FROM WidgetInst WHERE WidgetInstId = 15769) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15774;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15769) END FROM WidgetInst WHERE WidgetInstId = 15769) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15776;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15769) END FROM WidgetInst WHERE WidgetInstId = 15769) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15778;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15769) END FROM WidgetInst WHERE WidgetInstId = 15769) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15780;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 177) END FROM WidgetInst WHERE WidgetInstId = 177) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 35) END FROM WidgetInst WHERE WidgetInstId = 35)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15782;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 15784) END FROM WidgetInst WHERE WidgetInstId = 15784) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15785;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 15801;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 15801;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 15801;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 15801;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 15801;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 15801;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 15802;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 15802;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 15802;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 15802;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 15802;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 15802;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 15803;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 15803;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 15803;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 15803;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 15803;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 15803;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 15804;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 15804;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 15804;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 15804;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 15804;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 15804;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 15805;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 15805;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 15805;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 15805;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 15805;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 15805;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 15806;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 15806;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 15806;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 15806;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 15806;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 15806;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 15807;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 15807;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 15807;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 15807;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 15807;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 15807;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 15801) END FROM WidgetInst WHERE WidgetInstId = 15801) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15808;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 15802) END FROM WidgetInst WHERE WidgetInstId = 15802) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15809;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 15803) END FROM WidgetInst WHERE WidgetInstId = 15803) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15810;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 15804) END FROM WidgetInst WHERE WidgetInstId = 15804) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15811;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 15805) END FROM WidgetInst WHERE WidgetInstId = 15805) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15812;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 15806) END FROM WidgetInst WHERE WidgetInstId = 15806) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15813;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 15807) END FROM WidgetInst WHERE WidgetInstId = 15807) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15814;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 15822) END FROM WidgetInst WHERE WidgetInstId = 15822) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15829;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 15823) END FROM WidgetInst WHERE WidgetInstId = 15823) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15830;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 15824) END FROM WidgetInst WHERE WidgetInstId = 15824) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15831;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 15825) END FROM WidgetInst WHERE WidgetInstId = 15825) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15832;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 15826) END FROM WidgetInst WHERE WidgetInstId = 15826) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15833;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 15827) END FROM WidgetInst WHERE WidgetInstId = 15827) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15834;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 15828) END FROM WidgetInst WHERE WidgetInstId = 15828) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15835;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 15801) END FROM WidgetInst WHERE WidgetInstId = 15801) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15843;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 15802) END FROM WidgetInst WHERE WidgetInstId = 15802) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15844;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 15803) END FROM WidgetInst WHERE WidgetInstId = 15803) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15845;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 15804) END FROM WidgetInst WHERE WidgetInstId = 15804) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15846;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 15805) END FROM WidgetInst WHERE WidgetInstId = 15805) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15847;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 15806) END FROM WidgetInst WHERE WidgetInstId = 15806) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15848;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 15807) END FROM WidgetInst WHERE WidgetInstId = 15807) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15849;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 15403) END FROM WidgetInst WHERE WidgetInstId = 15403) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15885;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 15403) END FROM WidgetInst WHERE WidgetInstId = 15403) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15886;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 15403) END FROM WidgetInst WHERE WidgetInstId = 15403) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15887;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 15403) END FROM WidgetInst WHERE WidgetInstId = 15403) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15888;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 15403) END FROM WidgetInst WHERE WidgetInstId = 15403) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15889;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 15403) END FROM WidgetInst WHERE WidgetInstId = 15403) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15890;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 15403) END FROM WidgetInst WHERE WidgetInstId = 15403) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15891;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 15403) END FROM WidgetInst WHERE WidgetInstId = 15403) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15906;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 15403) END FROM WidgetInst WHERE WidgetInstId = 15403) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15907;


